chore: chase wlroots xdg-surface role rework

This commit is contained in:
Kirill Primak 2023-07-26 20:32:33 +03:00 committed by Simon Ser
parent 363c57984d
commit a908651821
3 changed files with 8 additions and 7 deletions

View file

@ -394,7 +394,7 @@ static bool surface_is_popup(struct wlr_surface *surface) {
}
struct wlr_xdg_surface *xdg_surface =
wlr_xdg_surface_try_from_wlr_surface(surface);
return xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP;
return xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP && xdg_surface->popup != NULL;
}
struct sway_container *container_at(struct sway_workspace *workspace,