[gtk+/touchscreens: 52/67] xi2: Get the effective group state by ORing the XIGroupState values
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/touchscreens: 52/67] xi2: Get the effective group state by ORing the XIGroupState values
- Date: Thu, 29 Dec 2011 00:41:24 +0000 (UTC)
commit 2c5a059b72a7808e3c772f0828065a128d1d0c3f
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 8 20:21:13 2011 +0100
xi2: Get the effective group state by ORing the XIGroupState values
gdk/x11/gdkdevice-xi2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c
index 9eecb3c..bc6261b 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -742,7 +742,7 @@ _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state,
{
gint group;
- group = group_state->base + group_state->latched + group_state->locked;
+ group = group_state->base | group_state->latched | group_state->locked;
/* FIXME: do we need the XKB complications for this ? */
group = CLAMP(group, 0, 3);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]