osd: prevent handling cursor actions in preview mode

Fixes: #1640

Co-Authored-By: tokyo4j <hrak1529@gmail.com>
This commit is contained in:
Consolatis 2024-03-29 02:53:53 +01:00 committed by Johan Malm
parent c4d12bf5d9
commit abd8e971c6
4 changed files with 26 additions and 1 deletions

View file

@ -409,6 +409,11 @@ handle_request_activate(struct wl_listener *listener, void *data)
return;
}
if (view->server->osd_state.cycle_view) {
wlr_log(WLR_INFO, "Preventing focus request while in window switcher");
return;
}
desktop_focus_view(view, /*raise*/ true);
}