mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
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:
parent
12f3314595
commit
d7dd366bad
11 changed files with 52 additions and 43 deletions
|
|
@ -40,7 +40,9 @@ static void
|
|||
end_cycling(struct server *server)
|
||||
{
|
||||
desktop_focus_and_activate_view(&server->seat, server->osd_state.cycle_view);
|
||||
desktop_move_to_front(server->osd_state.cycle_view);
|
||||
if (server->osd_state.cycle_view) {
|
||||
view_move_to_front(server->osd_state.cycle_view);
|
||||
}
|
||||
|
||||
/* osd_finish() additionally resets cycle_view to NULL */
|
||||
osd_finish(server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue