diff options
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c index b5dcfb0f..152bd26f 100644 --- a/sway/desktop/xdg_shell.c +++ b/sway/desktop/xdg_shell.c | |||
@@ -216,7 +216,7 @@ static bool is_transient_for(struct sway_view *child, | |||
216 | return false; | 216 | return false; |
217 | } | 217 | } |
218 | struct wlr_xdg_surface *surface = child->wlr_xdg_surface; | 218 | struct wlr_xdg_surface *surface = child->wlr_xdg_surface; |
219 | while (surface) { | 219 | while (surface && surface->role == WLR_XDG_SURFACE_ROLE_TOPLEVEL) { |
220 | if (surface->toplevel->parent == ancestor->wlr_xdg_surface) { | 220 | if (surface->toplevel->parent == ancestor->wlr_xdg_surface) { |
221 | return true; | 221 | return true; |
222 | } | 222 | } |