[gnome-boxes/gnome-3-4] Fix escaping from fullscreen when caps/numlock are on
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-4] Fix escaping from fullscreen when caps/numlock are on
- Date: Fri, 8 Jun 2012 16:38:27 +0000 (UTC)
commit fb2444e7aab0ddb02ea0511c879b04e86940e458
Author: Alexander Larsson <alexl redhat com>
Date: Thu May 31 20:27:28 2012 +0300
Fix escaping from fullscreen when caps/numlock are on
src/display-page.vala | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index cea48dd..4592a61 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -92,7 +92,13 @@ private class Boxes.DisplayPage: GLib.Object {
var y = event.motion.y;
if (y <= 0) {
toolbar_event_stop ();
- if ((event.motion.state & ModifierType.MODIFIER_MASK) == 0)
+ if ((event.motion.state &
+ (ModifierType.SHIFT_MASK | ModifierType.CONTROL_MASK |
+ ModifierType.MOD1_MASK | ModifierType.SUPER_MASK |
+ ModifierType.HYPER_MASK | ModifierType.META_MASK |
+ ModifierType.BUTTON1_MASK | ModifierType.BUTTON2_MASK |
+ ModifierType.BUTTON3_MASK | ModifierType.BUTTON4_MASK |
+ ModifierType.BUTTON5_MASK)) == 0)
set_overlay_toolbar_visible (true);
} else if (y > 5 && toolbar_hide_id == 0) {
toolbar_event_stop ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]