summaryrefslogtreecommitdiff
path: root/xkb/ddxKillSrv.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-12-05 19:37:48 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-12-05 19:37:48 +0000
commit320abd7d1d906807448fa01ad3377daf707f46cc (patch)
tree2a652c4d3db41087ae1fd1d79090b1b848dfcb6f /xkb/ddxKillSrv.c
parent85dd8efac1bc0715f03c99d261b1c5d0980623e1 (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.c4
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;
}