xdg: center small fullscreen views and add black background fill

This commit is contained in:
John Lindgren 2025-12-01 15:13:07 -05:00 committed by Hiroaki Yamamoto
parent 96617311cd
commit 7f7b5f57ec
3 changed files with 79 additions and 1 deletions

View file

@ -1699,6 +1699,12 @@ view_set_fullscreen(struct view *view, bool fullscreen)
view_apply_special_geometry(view);
}
output_set_has_fullscreen_view(view->output, view->fullscreen);
/*
* Entering/leaving fullscreen might result in a different
* scene node ending up under the cursor even if view_moved()
* isn't called. Update cursor focus explicitly for that case.
*/
cursor_update_focus(view->server);
}
static bool