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 <antoinebus...@gmail.com> --- 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 _______________________________________________ Ratpoison-devel mailing list Ratpoison-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/ratpoison-devel