shell: Fix set_transient_for with a NULL parent
This commit is contained in:
parent
8d344a0548
commit
8f180d44f5
|
@ -1855,8 +1855,12 @@ xdg_surface_set_transient_for(struct wl_client *client,
|
|||
struct wl_resource *parent_resource)
|
||||
{
|
||||
struct shell_surface *shsurf = wl_resource_get_user_data(resource);
|
||||
struct weston_surface *parent =
|
||||
wl_resource_get_user_data(parent_resource);
|
||||
struct weston_surface *parent;
|
||||
|
||||
if (parent_resource)
|
||||
parent = wl_resource_get_user_data(parent_resource);
|
||||
else
|
||||
parent = NULL;
|
||||
|
||||
shell_surface_set_parent(shsurf, parent);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue