focus: Fixup popups again..
This commit is contained in:
parent
9bd9c5d432
commit
98f34e5279
1 changed files with 5 additions and 1 deletions
|
|
@ -212,7 +212,11 @@ impl Common {
|
||||||
let is_toplevel = matches!(get_role(&surface), Some(XDG_TOPLEVEL_ROLE));
|
let is_toplevel = matches!(get_role(&surface), Some(XDG_TOPLEVEL_ROLE));
|
||||||
let is_layer = matches!(get_role(&surface), Some(LAYER_SURFACE_ROLE));
|
let is_layer = matches!(get_role(&surface), Some(LAYER_SURFACE_ROLE));
|
||||||
|
|
||||||
if is_layer {
|
if let Some(popup) = state.common.shell.popups.find_popup(&surface) {
|
||||||
|
if popup.alive() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
} else if is_layer {
|
||||||
if layer_map_for_output(&output)
|
if layer_map_for_output(&output)
|
||||||
.layer_for_surface(&surface, WindowSurfaceType::ALL)
|
.layer_for_surface(&surface, WindowSurfaceType::ALL)
|
||||||
.is_some()
|
.is_some()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue