view: Add view_move_to_front/back().

This avoids calling view->impl functions from cursor.c and desktop.c.

v2: Add an explicit recursion guard in cursor_update_focus().
This commit is contained in:
John Lindgren 2023-04-01 14:06:52 -04:00 committed by Consolatis
parent 12f3314595
commit d7dd366bad
11 changed files with 52 additions and 43 deletions

View file

@ -38,7 +38,7 @@ handle_request_activate(struct wl_listener *listener, void *data)
workspaces_switch_to(view->workspace);
}
desktop_focus_and_activate_view(&view->server->seat, view);
desktop_move_to_front(view);
view_move_to_front(view);
}
static void