Compat: Add grab/window logging actions
authorDaniel Stone <daniel@fooishbar.org>
Tue, 21 Jun 2011 17:01:42 +0000 (18:01 +0100)
committerSergey V. Udaltsov <svu@gnome.org>
Tue, 28 Jun 2011 21:40:48 +0000 (22:40 +0100)
XF86LogWindowTree and XF86LogGrabInfo, included in very recent x11proto,
are new symbols to trigger the PrGrbs and PrWins actions, respectively.
These are new debugging actions which print useful information to the X
log.

See http://lists.x.org/archives/xorg-devel/2011-June/023314.html for
more information.  (Note that there is a slight mismatch with some of
the action names there, which was fixed in a later revision of the
patch.)

This should probably only be included in a new major release though, due
to http://cgit.freedesktop.org/xorg/app/xkbcomp/commit/?id=2a473b which
meant that using any unknown keysyms in an interp definition meant that
it turned into an Any+AnyOfOrNone(All) definition, so all your
non-action keys just dumped the window tree to the X log and did nothing
else.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
compat/xfree86

index e08b0db..cf4a8b2 100644 (file)
@@ -47,6 +47,13 @@ default partial xkb_compatibility "basic"  {
     interpret XF86_ClearGrab {
         action = Private(type=0x86, data="ClsGrb");
     };
+    interpret XF86LogGrabInfo {
+        action = Private(type=0x86, data="PrGrbs");
+    };
+    interpret XF86LogWindowTree {
+        action = Private(type=0x86, data="PrWins");
+    };
+
     interpret XF86_Next_VMode {
         action = Private(type=0x86, data="+VMode");
     };