commit ff1bd37225d0d5f896b819c4a9e1aa0391fc8b2a
parent c9b330890a17765f2b8f695d0a64ddf4a6b0f5a4
Author: Eric Pruitt <eric.pruitt@gmail.com>
Date: Wed, 30 Dec 2015 16:18:49 -0800
Add borders to windows when making them float
Diffstat:
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/dwm.suckless.org/patches/dwm-6.1-better-borders.diff b/dwm.suckless.org/patches/dwm-6.1-better-borders.diff
@@ -64,7 +64,22 @@ index 0362114..03fddb6 100644
}
void
-@@ -2003,7 +2050,8 @@ updatewindowtype(Client *c)
+@@ -1706,9 +1730,11 @@ togglefloating(const Arg *arg)
+ if (selmon->sel->isfullscreen) /* no support for fullscreen windows */
+ return;
+ selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
+- if (selmon->sel->isfloating)
+- resize(selmon->sel, selmon->sel->x, selmon->sel->y,
+- selmon->sel->w, selmon->sel->h, 0);
++ if (selmon->sel->isfloating) {
++ selmon->sel->oldbw = selmon->sel->bw;
++ selmon->sel->bw = borderpx;
++ resizeclient(selmon->sel, selmon->wx, selmon->wy, selmon->ww - (2 * selmon->sel->bw), selmon->wh - (2 * selmon->sel->bw));
++ }
+ arrange(selmon);
+ }
+
+@@ -2003,7 +2029,8 @@ updatewindowtype(Client *c)
Atom state = getatomprop(c, netatom[NetWMState]);
Atom wtype = getatomprop(c, netatom[NetWMWindowType]);