aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-17 14:15:18 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2024-06-18 08:48:10 +0200
commit4418e2c01101c6d5a974d87d81295e5916601272 (patch)
treea7796875e33f848affacc6a2394f46139518e6c2 /src
parent30e18f5dcc772bd6cbc4c7524a0bdac17dfe57da (diff)
downloadarctica-greeter-4418e2c01101c6d5a974d87d81295e5916601272.tar.gz
arctica-greeter-4418e2c01101c6d5a974d87d81295e5916601272.tar.bz2
arctica-greeter-4418e2c01101c6d5a974d87d81295e5916601272.zip
main window: Keep always below all other windows (esp. helpful for nm-applets WiFi credentials dialog).
Diffstat (limited to 'src')
-rw-r--r--src/arctica-greeter.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 78c34b5..76ffc65 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -492,6 +492,7 @@ public class ArcticaGreeter : Object
debug ("Showing main window");
if (!test_mode)
main_window.set_decorated (false);
+ main_window.set_keep_below (true);
main_window.realize ();
main_window.setup_window ();
main_window.show ();
@@ -693,7 +694,6 @@ public class ArcticaGreeter : Object
// Now check to see if this is the magnifier - no focus for it, either
X.Window nMagnifier = 0;
-
if (this.pMagnifierWindow != null)
{
Gdk.X11.Window pWindow = (Gdk.X11.Window) this.pMagnifierWindow.get_window ();
@@ -702,6 +702,7 @@ public class ArcticaGreeter : Object
if (xwin != keyboard_xid && xwin != nMagnifier && win.get_type_hint() != Gdk.WindowTypeHint.NOTIFICATION)
{
+ win.set_keep_below (true);
win.focus (Gdk.CURRENT_TIME);
/* Make sure to keep keyboard above */