[PATCH] Fix: only set active frame when needed in sync_wins
Antoine Busque <[email protected]> Sun, 6 Aug 2017 22:31:52 -0400
| Newsgroups | gmane.comp.window-managers.ratpoison.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- 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