[gtk+] x11: Simplify XI2 mods state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Simplify XI2 mods state
- Date: Sun, 4 Mar 2012 06:12:15 +0000 (UTC)
commit f3b899fc838ef090ab174a4135fa179ca8422d28
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 29 16:18:57 2012 +0000
x11: Simplify XI2 mods state
https://bugzilla.gnome.org/show_bug.cgi?id=671070
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 80aa0b0..6e49626 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -745,7 +745,7 @@ _gdk_x11_device_xi2_translate_state (XIModifierState *mods_state,
guint state = 0;
if (mods_state)
- state = (guint) mods_state->base | mods_state->latched | mods_state->locked;
+ state = mods_state->effective;
if (buttons_state)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]