mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-07 08:21:07 -04:00
Update client.h
This commit is contained in:
parent
a04294b80e
commit
47ddc0fddb
1 changed files with 1 additions and 1 deletions
2
client.h
2
client.h
|
|
@ -304,7 +304,7 @@ toplevel_from_popup(struct wlr_xdg_popup *popup)
|
||||||
while (1) {
|
while (1) {
|
||||||
switch (surface->role) {
|
switch (surface->role) {
|
||||||
case WLR_XDG_SURFACE_ROLE_POPUP:
|
case WLR_XDG_SURFACE_ROLE_POPUP:
|
||||||
if (surface->popup->parent == NULL)
|
if (!surface->popup->parent)
|
||||||
return NULL;
|
return NULL;
|
||||||
else if (wlr_surface_is_layer_surface(surface->popup->parent))
|
else if (wlr_surface_is_layer_surface(surface->popup->parent))
|
||||||
return wlr_layer_surface_v1_from_wlr_surface(surface->popup->parent)->data;
|
return wlr_layer_surface_v1_from_wlr_surface(surface->popup->parent)->data;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue