[gnome-power-manager] Make hotkeys work with modifiers



commit 9286af907243532eb39b5f977e7f2660d7f47959
Author: Martin Pitt <martin pitt ubuntu com>
Date:   Thu Jul 23 07:11:41 2009 +0200

    Make hotkeys work with modifiers
    
    Use AnyModifier modmask with XGrabKey so that hotkeys being handled through
    gpm-button still work if e.g. numlock happens to be on.
    
    https://launchpad.net/bugs/280646

 src/gpm-button.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-button.c b/src/gpm-button.c
index 3a72ec9..85971b3 100644
--- a/src/gpm-button.c
+++ b/src/gpm-button.c
@@ -139,7 +139,7 @@ gpm_button_filter_x_events (GdkXEvent *xevent, GdkEvent *event, gpointer data)
 static gboolean
 gpm_button_grab_keystring (GpmButton *button, guint64 keycode)
 {
-	guint modmask = 0;
+	guint modmask = AnyModifier;
 	Display *display;
 	gint ret;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]