From e057fcc9078388b388b71056afc6a602c8b80a5c Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Mon, 29 Oct 2012 22:53:40 +0800 Subject: [PATCH] Fix window focus cycling on single-head fullscreen layout. --- spectrwm.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index 2bad31b..4b3eb86 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -4495,14 +4495,9 @@ max_stack(struct workspace *ws, struct swm_geometry *g) update_window(w); } - - /* Unmap unwanted windows if not multi-screen. */ - if (num_screens <= 1 && outputs <= 1 && w != win && - w != parent && w->transient != win->id) - unmap_window(w); } - /* If a parent exists, map it first. */ + /* If a parent exists, map/raise it first. */ if (parent) { map_window(parent); @@ -4515,10 +4510,10 @@ max_stack(struct workspace *ws, struct swm_geometry *g) } } - /* Map focused window. */ + /* Map/raise focused window. */ map_window(win); - /* Finally, map children of focus window. */ + /* Finally, map/raise children of focus window. */ TAILQ_FOREACH(w, &ws->winlist, entry) if (w->transient == win->id && !w->iconic) { stack_floater(w, ws->r); -- 1.7.10.4