[gnome-boxes] display: fix toolbar not showing up
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] display: fix toolbar not showing up
- Date: Wed, 23 May 2012 23:01:21 +0000 (UTC)
commit bb9df65796564f335b4cfb05c01140781f426d2a
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Tue May 22 18:41:16 2012 +0200
display: fix toolbar not showing up
We need to filter out private flags.
https://bugzilla.gnome.org/show_bug.cgi?id=676222
src/display-page.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/display-page.vala b/src/display-page.vala
index 9f60d92..987e2c3 100644
--- a/src/display-page.vala
+++ b/src/display-page.vala
@@ -84,10 +84,9 @@ private class Boxes.DisplayPage: GLib.Object {
event_box.event.connect ((event) => {
if (app.fullscreen && event.type == EventType.MOTION_NOTIFY) {
var y = event.motion.y;
-
if (y <= 0) {
toolbar_event_stop ();
- if (event.motion.state == 0)
+ if ((event.motion.state & ModifierType.MODIFIER_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]