This should make the transition of the server state more predictable and
prevent potential bugs.
static void
start_window_cycling(struct server *server, enum lab_cycle_dir direction)
{
+ if (server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) {
+ return;
+ }
+
/* Remember direction so it can be followed by subsequent key presses */
server->osd_state.initial_direction = direction;
server->osd_state.initial_keybind_contained_shift =
void
menu_open_root(struct menu *menu, int x, int y)
{
+ if (menu->server->input_mode != LAB_INPUT_STATE_PASSTHROUGH) {
+ return;
+ }
+
assert(menu);
if (menu->server->menu_current) {
menu_close(menu->server->menu_current);