diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index d2c4ffc4..8c344a6d 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -394,7 +394,7 @@ static bool surface_is_popup(struct wlr_surface *surface) { | |||
394 | } | 394 | } |
395 | struct wlr_xdg_surface *xdg_surface = | 395 | struct wlr_xdg_surface *xdg_surface = |
396 | wlr_xdg_surface_try_from_wlr_surface(surface); | 396 | wlr_xdg_surface_try_from_wlr_surface(surface); |
397 | return xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP; | 397 | return xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP && xdg_surface->popup != NULL; |
398 | } | 398 | } |
399 | 399 | ||
400 | struct sway_container *container_at(struct sway_workspace *workspace, | 400 | struct sway_container *container_at(struct sway_workspace *workspace, |