diff options
author | Adam Jackson <ajax@redhat.com> | 2015-10-19 12:23:22 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-10-19 12:23:22 -0400 |
commit | 5b582a4a0350c253d729efb31b710851ae9a958e (patch) | |
tree | 7886a6356d64c9663c6e6afd995fa24d4c639606 | |
parent | 1d4aa672424d8b1629fda11400b88607b5066965 (diff) | |
parent | 27ad21254f257bac6c647315d749ee69f20c24e0 (diff) |
Merge remote-tracking branch 'jeremyhu/master'
-rw-r--r-- | hw/xquartz/darwinEvents.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/hw/xquartz/darwinEvents.c b/hw/xquartz/darwinEvents.c index 9bf2f14ee..557729768 100644 --- a/hw/xquartz/darwinEvents.c +++ b/hw/xquartz/darwinEvents.c @@ -178,7 +178,7 @@ static int darwin_x11_modifier_mask_list[] = { 0 }; -static int darwin_all_modifier_mask_additions[] = { NX_SECONDARYFNMASK, }; +static int darwin_all_modifier_mask_additions[] = { NX_SECONDARYFNMASK, 0 }; static void DarwinUpdateModifiers(int pressed, // KeyPress or KeyRelease @@ -367,14 +367,12 @@ DarwinEQInit(void) { int *p; - for (p = darwin_x11_modifier_mask_list, darwin_all_modifier_mask = 0; *p; - p++) { + for (p = darwin_x11_modifier_mask_list; *p; p++) { darwin_x11_modifier_mask |= *p; } - for (p = darwin_all_modifier_mask_additions, - darwin_all_modifier_mask = darwin_x11_modifier_mask; - *p; p++) { + darwin_all_modifier_mask = darwin_x11_modifier_mask; + for (p = darwin_all_modifier_mask_additions; *p; p++) { darwin_all_modifier_mask |= *p; } @@ -387,7 +385,6 @@ DarwinEQInit(void) */ if (!darwinEvents) { darwinEvents = InitEventList(GetMaximumEventsNum()); - ; if (!darwinEvents) FatalError("Couldn't allocate event buffer\n"); |