[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] [PATCH] Fix: only set active frame when needed in sync_wins
From: |
Antoine Busque |
Subject: |
[RP] [PATCH] Fix: only set active frame when needed in sync_wins |
Date: |
Sun, 6 Aug 2017 22:31:52 -0400 |
Only set the active frame after destryoing a normal window in
`sync_wins` if this window was on the current screen. This mirrors the
behaviour already found in other functions like `unmap_notify`,
`destroy_notify`, etc.
Signed-off-by: Antoine Busque <address@hidden>
---
src/actions.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/actions.c b/src/actions.c
index a044f7a..2e339a2 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -4993,7 +4993,8 @@ sync_wins (rp_screen *s)
if (frame)
{
cleanup_frame (frame);
- if (frame->number == win->scr->current_frame)
+ if (frame->number == win->scr->current_frame
+ && rp_current_screen == win->scr)
set_active_frame (frame, 0);
}
withdraw_window (win);
--
2.13.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [RP] [PATCH] Fix: only set active frame when needed in sync_wins,
Antoine Busque <=