JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
monocle: don't resize windows when moving them offscreen
authorJason Woofenden <jason@jasonwoof.com>
Thu, 26 Mar 2015 01:24:49 +0000 (21:24 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 26 Mar 2015 01:24:49 +0000 (21:24 -0400)
dwm.c

diff --git a/dwm.c b/dwm.c
index 0a488fa..241c090 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1205,7 +1205,8 @@ monocle(Monitor *m) {
                if (c == m->sel) {
                        resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, False, 0);
                } else {
-                       resize(c, m->wx, m->wy - 4000, m->ww - 2 * c->bw, m->wh - 2 * c->bw, False, 0);
+                       // this window is should not be visible. move off top, but don't change h/w
+                       resize(c, m->wx, m->wy - 4000, c->w, c->h, False, 0);
                }
        }
 }