summaryrefslogtreecommitdiff
path: root/src/renderers/pieWindow.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2021-08-03 20:24:04 +0200
committerJörg Frings-Fürst <debian@jff.email>2021-08-03 20:24:04 +0200
commitcb628a331b2235465a985e51eb3476b8c7b1e68b (patch)
tree07e89daf5a1ac485e73f22ccb2ec2a914eeaf0f1 /src/renderers/pieWindow.vala
parent8ef660cf7c92b3407bf2fbfb0f063b90fbe991cf (diff)
parent38bebbbddf1b2e8620c6b3c2101f689c0296a1fc (diff)
Update upstream source from tag 'upstream/0.7.3'
Update to upstream version '0.7.3' with Debian dir 93afe8369b196a0543bb89394f0f3b70ff9dbb72
Diffstat (limited to 'src/renderers/pieWindow.vala')
-rw-r--r--src/renderers/pieWindow.vala11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/renderers/pieWindow.vala b/src/renderers/pieWindow.vala
index 6d258d8..554fb15 100644
--- a/src/renderers/pieWindow.vala
+++ b/src/renderers/pieWindow.vala
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
-// Copyright 2011-2018 Simon Schneegans
+// Copyright 2011-2021 Simon Schneegans
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -124,11 +124,12 @@ public class PieWindow : Gtk.Window {
this.set_skip_taskbar_hint(true);
this.set_skip_pager_hint(true);
this.set_keep_above(true);
- this.set_type_hint(Gdk.WindowTypeHint.DOCK);
+ this.set_type_hint(Gdk.WindowTypeHint.DIALOG);
this.set_decorated(false);
this.set_resizable(false);
this.icon_name = "gnome-pie";
- this.set_accept_focus(false);
+ this.set_accept_focus(true);
+ this.set_focus_on_map(true);
this.app_paintable = true;
// check for compositing
@@ -182,7 +183,9 @@ public class PieWindow : Gtk.Window {
});
this.focus_out_event.connect((w, e) => {
- this.cancel();
+ if (this.is_active) {
+ this.cancel();
+ }
return true;
});