mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
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).
This commit is contained in:
parent
cf759ec183
commit
270b45da88
6 changed files with 13 additions and 25 deletions
|
|
@ -29,12 +29,6 @@ foreign_request_fullscreen(struct foreign_toplevel *toplevel, bool fullscreen)
|
|||
void
|
||||
foreign_request_activate(struct foreign_toplevel *toplevel)
|
||||
{
|
||||
if (toplevel->view->server->input_mode
|
||||
== LAB_INPUT_STATE_WINDOW_SWITCHER) {
|
||||
wlr_log(WLR_INFO, "Preventing focus request while in window switcher");
|
||||
return;
|
||||
}
|
||||
|
||||
desktop_focus_view(toplevel->view, /*raise*/ true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue