mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-10 04:27:53 -05:00
xdg_shell: skip configure in request_fullscreen handler if unmapped
wlr_xdg_surface_schedule_configure() requires the xdg_surface to be initialized. Closes: https://github.com/cage-kiosk/cage/issues/456
This commit is contained in:
parent
cb8582c056
commit
191501b13f
1 changed files with 4 additions and 0 deletions
|
|
@ -197,6 +197,10 @@ handle_xdg_toplevel_request_fullscreen(struct wl_listener *listener, void *data)
|
|||
struct cg_xdg_shell_view *xdg_shell_view = wl_container_of(listener, xdg_shell_view, request_fullscreen);
|
||||
bool fullscreen = xdg_shell_view->xdg_toplevel->requested.fullscreen;
|
||||
|
||||
if (!xdg_shell_view->xdg_toplevel->base->surface->mapped) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Certain clients do not like figuring out their own window geometry if they
|
||||
* display in fullscreen mode, so we set it here.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue