diff options
author | marha <marha@users.sourceforge.net> | 2011-07-04 14:21:49 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-07-04 14:21:49 +0200 |
commit | 5c671fd7f8198bed2fc32b33b81d1081f1486ed9 (patch) | |
tree | 96fc6a6d761473737def7c35256fed9bbe52753e /xorg-server/hw/xfree86/dixmods/xkbPrivate.c | |
parent | d9f970a847e1af706f07560ef163b229bb592307 (diff) | |
download | vcxsrv-5c671fd7f8198bed2fc32b33b81d1081f1486ed9.tar.gz vcxsrv-5c671fd7f8198bed2fc32b33b81d1081f1486ed9.tar.bz2 vcxsrv-5c671fd7f8198bed2fc32b33b81d1081f1486ed9.zip |
xserver mesa git update 4 July 2011
Diffstat (limited to 'xorg-server/hw/xfree86/dixmods/xkbPrivate.c')
-rw-r--r-- | xorg-server/hw/xfree86/dixmods/xkbPrivate.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xorg-server/hw/xfree86/dixmods/xkbPrivate.c b/xorg-server/hw/xfree86/dixmods/xkbPrivate.c index 9742eaf31..06d1c2b3d 100644 --- a/xorg-server/hw/xfree86/dixmods/xkbPrivate.c +++ b/xorg-server/hw/xfree86/dixmods/xkbPrivate.c @@ -13,6 +13,7 @@ #define XKBSRV_NEED_FILE_FUNCS #include <xkbsrv.h> +#include "dixgrabs.h" #include "os.h" #include "xf86.h" @@ -29,6 +30,20 @@ XkbDDXPrivate(DeviceIntPtr dev,KeyCode key,XkbAction *act) xf86ProcessActionEvent(ACTION_PREV_MODE, NULL); else if (strcasecmp(msgbuf, "+vmode")==0) xf86ProcessActionEvent(ACTION_NEXT_MODE, NULL); + else if (strcasecmp(msgbuf, "prgrbs")==0) { + DeviceIntPtr tmp; + xf86Msg(X_INFO, "Printing all currently active device grabs:\n"); + for (tmp = inputInfo.devices; tmp; tmp = tmp->next) + if (tmp->deviceGrab.grab) + PrintDeviceGrabInfo(tmp); + xf86Msg(X_INFO, "End list of active device grabs\n"); + } + else if (strcasecmp(msgbuf, "ungrab")==0) + UngrabAllDevices(FALSE); + else if (strcasecmp(msgbuf, "clsgrb")==0) + UngrabAllDevices(TRUE); + else if (strcasecmp(msgbuf, "prwins")==0) + PrintWindowTree(); } return 0; |