mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
XKB: Actions: Don't run certain actions on the core keyboard
Don't run VT switches, terminations, or anything, on the core keyboard: only run actions which affect the keyboard state. If we get an action such as VT switch, just swallow the event.
This commit is contained in:
parent
85dd8efac1
commit
320abd7d1d
3 changed files with 23 additions and 4 deletions
|
|
@ -41,6 +41,8 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
int
|
||||
XkbDDXTerminateServer(DeviceIntPtr dev,KeyCode key,XkbAction *act)
|
||||
{
|
||||
GiveUp(1);
|
||||
if (dev != inputInfo.keyboard)
|
||||
GiveUp(1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue