]> git.mdlowis.com Git - proto/labwc.git/commit
desktop: harden window stacking order while window switching
authortokyo4j <hrak1529@gmail.com>
Mon, 24 Feb 2025 12:40:46 +0000 (21:40 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 9 Mar 2025 20:41:26 +0000 (20:41 +0000)
commit270b45da881ca4a0c0cf1ab58e4d960e09ae3c24
tree8a021c987a2d0366b01798b04a61a42845393fc0
parentcf759ec1832159d16e032130613c65c28ff188c5
desktop: harden window stacking order while window switching

This commit moves the check against server->input_mode from the callers
of desktop_focus_view() into desktop_focus_view() itself. This
eliminates code duplications and makes it harder to mess up the window
stacking order while window switching.

I also added the same check in view_minimize() so that minimize requests
from panels never messes up the window stacking order (I think only this
should be described in the release note).
src/desktop.c
src/foreign-toplevel/foreign.c
src/input/cursor.c
src/view.c
src/xdg.c
src/xwayland.c