[gnome-settings-daemon] wacom: Only switch mode on key release
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Only switch mode on key release
- Date: Mon, 27 Feb 2012 16:44:12 +0000 (UTC)
commit 521725fb2a89708af1be86aef15f83f5598cc6d9
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 27 16:43:45 2012 +0000
wacom: Only switch mode on key release
Otherwise we'll skip modes 2-by-2.
plugins/wacom/gsd-wacom-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 8a5ebcb..5291790 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -830,6 +830,10 @@ filter_button_events (XEvent *xevent,
if (wbutton->type == WACOM_TABLET_BUTTON_TYPE_HARDCODED) {
int new_mode;
+ /* We switch modes on key release */
+ if (xiev->evtype == XI_ButtonRelease)
+ return GDK_FILTER_REMOVE;
+
new_mode = gsd_wacom_device_set_next_mode (device, wbutton->group_id);
set_led (device, wbutton->group_id, new_mode);
return GDK_FILTER_REMOVE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]