diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arctica-greeter.vala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index dc574b5..a964588 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -426,6 +426,12 @@ public class ArcticaGreeter root.add_filter (focus_upon_map); } + private void kill_fake_wm () + { + var root = Gdk.get_default_root_window (); + root.remove_filter (focus_upon_map); + } + private static Cairo.XlibSurface? create_root_surface (Gdk.Screen screen) { var visual = screen.get_system_visual (); @@ -503,6 +509,13 @@ public class ArcticaGreeter main_window = new MainWindow (); + main_window.destroy.connect(() => { kill_fake_wm (); }); + main_window.delete_event.connect(() => + { + Gtk.main_quit(); + return false; + }); + Bus.own_name (BusType.SESSION, "org.ayatana.Greeter", BusNameOwnerFlags.NONE); dbus_object = new DialogDBusInterface (); |