diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-11-10 23:25:48 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-11-10 23:25:48 -0600 |
commit | fcb3fa4e907d1a7733ddaebc1774f61490b9b640 (patch) | |
tree | 2df9b78e37d3270a4dfcd1a4da3d6ce7b978f8f8 /client.h | |
parent | 448a96de13042c76634c2a898c370889b33693d0 (diff) | |
parent | b59c7f6a2e263a67983bed69cd733fe2e5ab0ee6 (diff) |
Merge remote-tracking branch 'upstream/main' into wlroots-next
Diffstat (limited to 'client.h')
-rw-r--r-- | client.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -315,7 +315,9 @@ toplevel_from_popup(struct wlr_xdg_popup *popup) while (1) { switch (surface->role) { case WLR_XDG_SURFACE_ROLE_POPUP: - if (wlr_surface_is_layer_surface(surface->popup->parent)) + if (!surface->popup->parent) + return NULL; + else if (wlr_surface_is_layer_surface(surface->popup->parent)) return wlr_layer_surface_v1_from_wlr_surface(surface->popup->parent)->data; else if (!wlr_surface_is_xdg_surface(surface->popup->parent)) return NULL; |