[gnome-power-manager/gnome-2-26] Make hotkeys work with modifiers
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-power-manager/gnome-2-26] Make hotkeys work with modifiers
- Date: Mon, 3 Aug 2009 16:19:38 +0000 (UTC)
commit 1206d6f71a9b554bf10a054d2f44781b3a42b89b
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 e943e8d..73767ed 100644
--- a/src/gpm-button.c
+++ b/src/gpm-button.c
@@ -147,7 +147,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]