summaryrefslogtreecommitdiff
path: root/src/renderers/pieWindow.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderers/pieWindow.vala')
-rw-r--r--[-rwxr-xr-x]src/renderers/pieWindow.vala14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/renderers/pieWindow.vala b/src/renderers/pieWindow.vala
index 5accb15..d2bf61f 100755..100644
--- a/src/renderers/pieWindow.vala
+++ b/src/renderers/pieWindow.vala
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
-// Copyright (c) 2011-2015 by Simon Schneegans
+// Copyright (c) 2011-2016 by Simon Schneegans
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -129,7 +129,7 @@ public class PieWindow : Gtk.Window {
//and infinte loop while processing some mouse-motion events.
//(this was seen in Ubuntu 14.04.2 64/32-bits -Glib 2.19- and in MATE 14.04.2)
// set up event filter
- //this.add_events(Gdk.EventMask.BUTTON_RELEASE_MASK |
+ // this.add_events(Gdk.EventMask.BUTTON_RELEASE_MASK |
// Gdk.EventMask.KEY_RELEASE_MASK |
// Gdk.EventMask.KEY_PRESS_MASK |
// Gdk.EventMask.POINTER_MOTION_MASK |
@@ -169,6 +169,16 @@ public class PieWindow : Gtk.Window {
return true;
});
+ ulong connection_id = PieManager.bindings.on_release.connect((time_stamp) => {
+ if (PieManager.get_is_turbo(this.renderer.id)) {
+ this.activate_slice(time_stamp);
+ }
+ });
+
+ this.on_closing.connect(() => {
+ PieManager.bindings.disconnect(connection_id);
+ });
+
// notify the renderer of mouse move events
this.motion_notify_event.connect((e) => {
this.renderer.on_mouse_move();