mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-02-05 04:06:24 -05:00
xwayland: fix crash when request_fullscreen is called while unmapped
Closes: https://github.com/cage-kiosk/cage/issues/463
This commit is contained in:
parent
832e88b0c9
commit
68b2054292
1 changed files with 6 additions and 2 deletions
|
|
@ -116,8 +116,10 @@ handle_xwayland_surface_request_fullscreen(struct wl_listener *listener, void *d
|
|||
struct cg_xwayland_view *xwayland_view = wl_container_of(listener, xwayland_view, request_fullscreen);
|
||||
struct wlr_xwayland_surface *xwayland_surface = xwayland_view->xwayland_surface;
|
||||
wlr_xwayland_surface_set_fullscreen(xwayland_view->xwayland_surface, xwayland_surface->fullscreen);
|
||||
wlr_foreign_toplevel_handle_v1_set_fullscreen(xwayland_view->view.foreign_toplevel_handle,
|
||||
xwayland_surface->fullscreen);
|
||||
if (xwayland_view->view.foreign_toplevel_handle) {
|
||||
wlr_foreign_toplevel_handle_v1_set_fullscreen(xwayland_view->view.foreign_toplevel_handle,
|
||||
xwayland_surface->fullscreen);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -148,6 +150,8 @@ handle_xwayland_surface_map(struct wl_listener *listener, void *data)
|
|||
if (xwayland_view->xwayland_surface->class)
|
||||
wlr_foreign_toplevel_handle_v1_set_app_id(view->foreign_toplevel_handle,
|
||||
xwayland_view->xwayland_surface->class);
|
||||
wlr_foreign_toplevel_handle_v1_set_fullscreen(view->foreign_toplevel_handle,
|
||||
xwayland_view->xwayland_surface->fullscreen);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue