mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-26 07:58:10 -04:00
Fix segfault when title or app_id is NULL
This commit is contained in:
parent
ea2069f427
commit
dafb28626f
2 changed files with 12 additions and 5 deletions
|
|
@ -142,9 +142,12 @@ handle_xwayland_surface_map(struct wl_listener *listener, void *data)
|
|||
|
||||
view_map(view, xwayland_view->xwayland_surface->surface);
|
||||
|
||||
wlr_foreign_toplevel_handle_v1_set_title(view->foreign_toplevel_handle, xwayland_view->xwayland_surface->title);
|
||||
wlr_foreign_toplevel_handle_v1_set_app_id(view->foreign_toplevel_handle,
|
||||
xwayland_view->xwayland_surface->class);
|
||||
if (xwayland_view->xwayland_surface->title)
|
||||
wlr_foreign_toplevel_handle_v1_set_title(view->foreign_toplevel_handle,
|
||||
xwayland_view->xwayland_surface->title);
|
||||
if (xwayland_view->xwayland_surface->class)
|
||||
wlr_foreign_toplevel_handle_v1_set_app_id(view->foreign_toplevel_handle,
|
||||
xwayland_view->xwayland_surface->class);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue