aboutsummaryrefslogtreecommitdiff
path: root/src/arctica-greeter.vala
diff options
context:
space:
mode:
authorMichael Webster <miketwebster@gmail.com>2018-03-12 21:10:45 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-12 21:11:33 +0100
commit5c611a8744023a83dd24d94b5ab59f6308a8eadd (patch)
treec42a46f76933d9deec4a5ef5431ac72d440880e2 /src/arctica-greeter.vala
parentbda58f0b9583c3d67c8f56805d08b72e784adba8 (diff)
downloadarctica-greeter-5c611a8744023a83dd24d94b5ab59f6308a8eadd.tar.gz
arctica-greeter-5c611a8744023a83dd24d94b5ab59f6308a8eadd.tar.bz2
arctica-greeter-5c611a8744023a83dd24d94b5ab59f6308a8eadd.zip
src/arctica-greeter.vala: Clear the AT_SPI_BUS property on the root window on exit, so the user session components won't fail to connect.
Based on fix for lightdm-gtk-greeter see: https://bugs.launchpad.net/lightdm-gtk-greeter/+bug/1670933
Diffstat (limited to 'src/arctica-greeter.vala')
-rw-r--r--src/arctica-greeter.vala12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 45a98ba..adeb480 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -914,6 +914,18 @@ public class ArcticaGreeter
}
}
+
+ var screen = Gdk.Screen.get_default ();
+ unowned X.Display xdisplay = (screen.get_display () as Gdk.X11.Display).get_xdisplay ();
+
+ var window = xdisplay.default_root_window();
+ var atom = xdisplay.intern_atom ("AT_SPI_BUS", true);
+
+ if (atom != X.None) {
+ xdisplay.delete_property (window, atom);
+ Gdk.flush();
+ }
+
debug ("Exiting");
return Posix.EXIT_SUCCESS;