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:
Daniel Stone 2007-12-05 19:37:48 +00:00
commit 320abd7d1d
3 changed files with 23 additions and 4 deletions

View file

@ -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;
}