diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-19 20:56:00 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-19 20:56:00 +0400 |
| commit | e259061cbcfaf3a52a9eb2016b949cdc42e45db3 (patch) | |
| tree | 9c6a3c4ba1f3d282e017599474280a0fd828e106 /src/handlers/layer_shell.rs | |
| parent | 206493bb354fd56140e8bf00592c6dd683a6a117 (diff) | |
| download | niri-e259061cbcfaf3a52a9eb2016b949cdc42e45db3.tar.gz niri-e259061cbcfaf3a52a9eb2016b949cdc42e45db3.tar.bz2 niri-e259061cbcfaf3a52a9eb2016b949cdc42e45db3.zip | |
Implement popup unconstraining
Using my new Smithay implementation.
Diffstat (limited to 'src/handlers/layer_shell.rs')
| -rw-r--r-- | src/handlers/layer_shell.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/handlers/layer_shell.rs b/src/handlers/layer_shell.rs index a5b1d120..117f14e1 100644 --- a/src/handlers/layer_shell.rs +++ b/src/handlers/layer_shell.rs @@ -8,6 +8,7 @@ use smithay::wayland::shell::wlr_layer::{ Layer, LayerSurface as WlrLayerSurface, LayerSurfaceData, WlrLayerShellHandler, WlrLayerShellState, }; +use smithay::wayland::shell::xdg::PopupSurface; use crate::niri::State; @@ -52,6 +53,10 @@ impl WlrLayerShellHandler for State { self.niri.output_resized(output); } } + + fn new_popup(&mut self, _parent: WlrLayerSurface, popup: PopupSurface) { + self.unconstrain_popup(&popup); + } } delegate_layer_shell!(State); |
