mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 10:14:14 +00:00
Update client.h
This commit is contained in:
parent
a04294b80e
commit
47ddc0fddb
2
client.h
2
client.h
@ -304,7 +304,7 @@ toplevel_from_popup(struct wlr_xdg_popup *popup)
|
||||
while (1) {
|
||||
switch (surface->role) {
|
||||
case WLR_XDG_SURFACE_ROLE_POPUP:
|
||||
if (surface->popup->parent == NULL)
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user