summaryrefslogtreecommitdiff
path: root/src/pies/pieManager.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-19 07:34:05 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-04-19 07:34:05 +0200
commit5478fe2ceb86715f4ab9a51eb97c517465febfa6 (patch)
tree9e9ac02db8f5d399cdb05ee67178c9150b8c0d41 /src/pies/pieManager.vala
parent84a27086bbd9f493128b354300f9c77ccb32a56b (diff)
Imported Upstream version 0.6.1upstream/0.6.1
Diffstat (limited to 'src/pies/pieManager.vala')
-rw-r--r--src/pies/pieManager.vala9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pies/pieManager.vala b/src/pies/pieManager.vala
index 55cb353..305b444 100644
--- a/src/pies/pieManager.vala
+++ b/src/pies/pieManager.vala
@@ -95,10 +95,6 @@ public class PieManager : GLib.Object {
var window = new PieWindow();
window.load_pie(pie);
- window.open();
-
- opened_windows.add(window);
-
window.on_closed.connect(() => {
opened_windows.remove(window);
if (opened_windows.size == 0) {
@@ -111,9 +107,12 @@ public class PieManager : GLib.Object {
a_pie_is_active = false;
});
+ opened_windows.add(window);
+
+ window.open();
//restore default WM_CLASS after window open
- Gdk.set_program_class("gnome-pie");
+ Gdk.set_program_class("Gnome-pie");
} else {
warning("Failed to open pie with ID \"" + id + "\": ID does not exist!");