mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-07-04 00:07:01 -04:00
xdg_shell: explicitly schedule configure for initial commit
Compositors must reply to initial commit with a configure event. This happens implicitly via set_fullscreen()/view_position(), but let's be explicit.
This commit is contained in:
parent
5f83b27d62
commit
0f0c637a06
1 changed files with 3 additions and 2 deletions
|
|
@ -257,13 +257,14 @@ handle_xdg_toplevel_commit(struct wl_listener *listener, void *data)
|
|||
return;
|
||||
}
|
||||
|
||||
/* When an xdg_surface performs an initial commit, the compositor must
|
||||
* reply with a configure so the client can map the surface. */
|
||||
wlr_xdg_surface_schedule_configure(xdg_shell_view->xdg_toplevel->base);
|
||||
wlr_xdg_toplevel_set_wm_capabilities(xdg_shell_view->xdg_toplevel, XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
|
||||
|
||||
if (xdg_shell_view->xdg_toplevel->requested.fullscreen) {
|
||||
set_fullscreen(xdg_shell_view, true);
|
||||
} else {
|
||||
/* When an xdg_surface performs an initial commit, the compositor must
|
||||
* reply with a configure so the client can map the surface. */
|
||||
view_position(&xdg_shell_view->view);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue