[gnome-settings-daemon] wacom: Fix crash for shortcuts requiring Shift
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Fix crash for shortcuts requiring Shift
- Date: Wed, 11 Jul 2012 11:41:20 +0000 (UTC)
commit 7a55cc70973660bb5b701bc8bbb53809fd739386
Author: Olivier Fourdan <ofourdan redhat com>
Date: Wed Jul 11 11:37:13 2012 +0200
wacom: Fix crash for shortcuts requiring Shift
As per code comment, we want to ignore non-zero groups,
not non-zero levels, otherwise we wouldn't be able to
find keycodes for keysyms that require Shift.
Fixes crasher pressing a button with "Ctrl+Alt++" associated to it.
https://bugzilla.gnome.org/show_bug.cgi?id=679736
plugins/wacom/gsd-wacom-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 709fbc5..73d836c 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -1017,7 +1017,7 @@ generate_key (GsdWacomTabletButton *wbutton,
/* Couldn't find it in the current group? Look in group 0 */
if (keycode == 0) {
for (i = 0; i < n_keys; i++) {
- if (keys[i].level > 0)
+ if (keys[i].group > 0)
continue;
keycode = keys[i].keycode;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]