[Xfce4-commits] <libxfce4ui:jeromeg/keyboard-shortcuts-rework> Use the current group when translating the keyboard state

Jérôme Guelfucci noreply at xfce.org
Sun May 29 18:10:02 CEST 2011


Updating branch refs/heads/jeromeg/keyboard-shortcuts-rework
         to 5e50a7d5f6f868c12b1d439ff54600b984b2d5bd (commit)
       from 83770eec38278dd1e05577b48908d4b0b0d68dfc (commit)

commit 5e50a7d5f6f868c12b1d439ff54600b984b2d5bd
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Sun May 29 18:09:45 2011 +0200

    Use the current group when translating the keyboard state

 libxfce4kbd-private/xfce-shortcuts-grabber.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libxfce4kbd-private/xfce-shortcuts-grabber.c b/libxfce4kbd-private/xfce-shortcuts-grabber.c
index c1ba42b..f3d4a50 100644
--- a/libxfce4kbd-private/xfce-shortcuts-grabber.c
+++ b/libxfce4kbd-private/xfce-shortcuts-grabber.c
@@ -481,9 +481,9 @@ xfce_shortcuts_grabber_event_filter (GdkXEvent            *gdk_xevent,
   mod_mask = gtk_accelerator_get_default_mod_mask ();
   modifiers = xevent->xkey.state;
 
-  /* TODO: group handling? */
   gdk_keymap_translate_keyboard_state (keymap, xevent->xkey.keycode,
-                                       modifiers, 0,
+                                       modifiers,
+                                       XkbGroupForCoreState (xevent->xkey.state),
                                        &keyval, NULL, NULL, &consumed);
 
   /* Get the modifiers */



More information about the Xfce4-commits mailing list