aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xdg_shell_v6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r--sway/desktop/xdg_shell_v6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index a7ea163f..3eed54ab 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -213,7 +213,7 @@ static bool is_transient_for(struct sway_view *child,
213 return false; 213 return false;
214 } 214 }
215 struct wlr_xdg_surface_v6 *surface = child->wlr_xdg_surface_v6; 215 struct wlr_xdg_surface_v6 *surface = child->wlr_xdg_surface_v6;
216 while (surface) { 216 while (surface && surface->role == WLR_XDG_SURFACE_V6_ROLE_TOPLEVEL) {
217 if (surface->toplevel->parent == ancestor->wlr_xdg_surface_v6) { 217 if (surface->toplevel->parent == ancestor->wlr_xdg_surface_v6) {
218 return true; 218 return true;
219 } 219 }