]> Pileus Git - ~andy/gtk/commit
DND: Work better with XI2
authorMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2011 00:59:50 +0000 (20:59 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Oct 2011 00:59:50 +0000 (20:59 -0400)
commit633918158b8c2e0ba4a0cd0c0a812338a8ac83cf
treee8463a00e906f6a7a9a411f4dad3608ccea5b62d
parent0c135cbf2c6e2af5d6be25b9a7f437198967c4a2
DND: Work better with XI2

It turns out that simply using XIGrabKeycode instead of XGrabKey
makes the DND keyboard support mostly work (there seem to be some
minor issues with modifiers). This means we no longer grab the
keyboard actively during DND, which in turn makes Alt-Tab and
other window manager shortcuts work again during DND.

At the same time, bring the DND key handling code into the
multi-backend work, by checking for X11 and XI2 at runtime,
in addition to compile time.
gtk/gtkdnd.c