summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-05-14 22:02:52 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2008-05-14 22:02:52 +0000
commit73be5d7ad211a91928e4622049e1e96bcd76d86f (patch)
treec75682a48d262350ee9afca8ad1a215ae617406a /plugins
parent3c07f8da155bc57a33b67e6d408039c6741752dc (diff)
downloadgnome-settings-daemon-73be5d7ad211a91928e4622049e1e96bcd76d86f.tar.gz
Don't eat keypresses for multimedia key events Patch by Bastien Nocera
2008-05-14 William Jon McCann <jmccann@redhat.com> * plugins/mouse/gsd-mouse-manager.c (filter): Don't eat keypresses for multimedia key events Patch by Bastien Nocera <hadess@hadess.net> svn path=/trunk/; revision=341
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mouse/gsd-mouse-manager.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index b77207d5..ba9fb73b 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -418,21 +418,19 @@ filter (GdkXEvent *xevent,
NULL, NULL, NULL);
if (keyval == GDK_Control_L || keyval == GDK_Control_R) {
if (xev->type == KeyPress) {
- XAllowEvents (gdk_x11_get_default_xdisplay (),
+ XAllowEvents (xev->xkey.display,
SyncKeyboard,
xev->xkey.time);
} else {
- XAllowEvents (gdk_x11_get_default_xdisplay (),
+ XAllowEvents (xev->xkey.display,
AsyncKeyboard,
xev->xkey.time);
gsd_locate_pointer (screen);
}
} else {
- XAllowEvents (gdk_x11_get_default_xdisplay (),
+ XAllowEvents (xev->xkey.display,
ReplayKeyboard,
xev->xkey.time);
- XUngrabKeyboard (gdk_x11_get_default_xdisplay (),
- xev->xkey.time);
}
}
return GDK_FILTER_CONTINUE;