From 13b11bf7b131bab0c6db2d20fed89903ab867159 Mon Sep 17 00:00:00 2001 From: Manuel Ehrmanntraut Date: Sun, 29 Oct 2023 16:31:52 +0100 Subject: [PATCH] Simple correction to fix focus of on_demand layer shell surfaces. --- src/view/layer-shell/layer-shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view/layer-shell/layer-shell.cpp b/src/view/layer-shell/layer-shell.cpp index ab3eb6d78..35ac4cf5d 100644 --- a/src/view/layer-shell/layer-shell.cpp +++ b/src/view/layer-shell/layer-shell.cpp @@ -508,7 +508,7 @@ void wayfire_layer_shell_view::map() wf_layer_shell_manager::get_instance().handle_map(this); auto& state = lsurface->current; - if ((state.keyboard_interactive == 1) && (state.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP)) + if ((state.keyboard_interactive >= 1) && (state.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP)) { wf::get_core().seat->focus_view(self()); }