diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-12-05 19:37:48 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-12-05 19:37:48 +0000 |
commit | 320abd7d1d906807448fa01ad3377daf707f46cc (patch) | |
tree | 2a652c4d3db41087ae1fd1d79090b1b848dfcb6f /xkb/ddxKillSrv.c | |
parent | 85dd8efac1bc0715f03c99d261b1c5d0980623e1 (diff) |
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.
Diffstat (limited to 'xkb/ddxKillSrv.c')
-rw-r--r-- | xkb/ddxKillSrv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xkb/ddxKillSrv.c b/xkb/ddxKillSrv.c index a573ecbd8..3b5fd5353 100644 --- a/xkb/ddxKillSrv.c +++ b/xkb/ddxKillSrv.c @@ -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; } |