aboutsummaryrefslogtreecommitdiff
path: root/src/niri.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-01-03 16:24:02 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-01-03 16:24:23 +0300
commit8e16be9e1150fed822fd671b3faf082a9b2641c0 (patch)
treefe33daa07cbbae2a3b48f5a33034a793cb21607b /src/niri.rs
parent300701f44e9d1fef38eda06fc33b34708a8c6e50 (diff)
downloadniri-8e16be9e1150fed822fd671b3faf082a9b2641c0.tar.gz
niri-8e16be9e1150fed822fd671b3faf082a9b2641c0.tar.bz2
niri-8e16be9e1150fed822fd671b3faf082a9b2641c0.zip
Allow pop-up grabs for bottom and background layers
Diffstat (limited to 'src/niri.rs')
-rw-r--r--src/niri.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/niri.rs b/src/niri.rs
index 665238ac..c8180c73 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -920,6 +920,8 @@ impl State {
// fullscreen layout window. This will need tracking in grab() to avoid handing it out
// in the first place. Or a better way to structure this code.
surface = surface.or_else(|| grab_on_layer(Layer::Top));
+ surface = surface.or_else(|| grab_on_layer(Layer::Bottom));
+ surface = surface.or_else(|| grab_on_layer(Layer::Background));
surface = surface.or_else(|| focus_on_layer(Layer::Overlay));