summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/events.c b/src/events.c
index 86361bf..0937b0b 100644
--- a/src/events.c
+++ b/src/events.c
@@ -66,9 +66,9 @@ cleanup_frame (rp_window_frame *frame)
win = find_window_other ();
if (win)
{
- if (frame->win->transient
- && find_window (win->transient_for) == frame->win)
+ if (is_transient_ancestor (frame->win, win))
{
+ hide_transient_for_between (frame->win, win);
}
else
{