Fix bars when full screen, reposition popups
This commit is contained in:
parent
e129094bfb
commit
fc9fe59ed9
2 changed files with 20 additions and 6 deletions
|
|
@ -69,6 +69,13 @@ impl Shell {
|
|||
} else {
|
||||
unconstrain_xdg_popup(surface, window_loc, output.geometry());
|
||||
}
|
||||
} else if let Some(output) = self.workspaces.spaces().find_map(|w| {
|
||||
w.fullscreen.as_ref().and_then(|f| {
|
||||
(f.surface.wl_surface().as_deref() == Some(&parent)).then_some(w.output())
|
||||
})
|
||||
}) {
|
||||
let window_loc = output.geometry().loc;
|
||||
unconstrain_xdg_popup(surface, window_loc, output.geometry());
|
||||
} else if let Some((output, layer_surface)) = self.outputs().find_map(|o| {
|
||||
let map = layer_map_for_output(o);
|
||||
map.layer_for_surface(&parent, WindowSurfaceType::ALL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue