mirror of
https://codeberg.org/FabricSoul/dwl.git
synced 2025-08-03 20:10:23 -04:00
Merge remote-tracking branch 'upstream/main' into wlroots-next
This commit is contained in:
commit
fcb3fa4e90
3 changed files with 23 additions and 12 deletions
4
client.h
4
client.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue