[gtk+/wip/mir2] mir: fix IsModifierKey definition
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/mir2] mir: fix IsModifierKey definition
- Date: Tue, 2 Dec 2014 19:06:34 +0000 (UTC)
commit f060bfbc338d109cc12f143761bf9d8d235171e7
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue Dec 2 20:04:54 2014 +0100
mir: fix IsModifierKey definition
gdk/mir/gdkmirkeymap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/mir/gdkmirkeymap.c b/gdk/mir/gdkmirkeymap.c
index 8397db2..82f0d2c 100644
--- a/gdk/mir/gdkmirkeymap.c
+++ b/gdk/mir/gdkmirkeymap.c
@@ -32,10 +32,10 @@ typedef struct GdkMirKeymapClass GdkMirKeymapClass;
#define GDK_MIR_KEYMAP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_MIR_KEYMAP,
GdkMirKeymapClass))
#define IsModifierKey(keysym) \
- ((keysym >= XKB_KEY_Shift_L && keysym <= XKB_KEY_Hyper_R) || \
- (keysym >= XKB_KEY_ISO_Lock && keysym <= XKB_KEY_ISO_Last_Group_Lock) || \
- (keysym == XKB_KEY_Mode_switch) || \
- (keysym == XKB_KEY_Num_Lock))
+ (((keysym) >= XKB_KEY_Shift_L && (keysym) <= XKB_KEY_Hyper_R) || \
+ ((keysym) >= XKB_KEY_ISO_Lock && (keysym) <= XKB_KEY_ISO_Last_Group_Lock) || \
+ ((keysym) == XKB_KEY_Mode_switch) || \
+ ((keysym) == XKB_KEY_Num_Lock))
struct GdkMirKeymap
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]