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

@ -725,6 +725,11 @@ xdg_activation_handle_request(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;
}
wlr_log(WLR_DEBUG, "Activating surface");
desktop_focus_view(view, /*raise*/ true);
}