[wiki] [sites] Add borders to windows when making them float || Eric Pruitt

From: <git_AT_suckless.org>
Date: Thu, 31 Dec 2015 01:18:51 +0100

commit ff1bd37225d0d5f896b819c4a9e1aa0391fc8b2a
Author: Eric Pruitt <eric.pruitt_AT_gmail.com>
Date: Wed Dec 30 16:18:49 2015 -0800

    Add borders to windows when making them float

diff --git a/dwm.suckless.org/patches/dwm-6.1-better-borders.diff b/dwm.suckless.org/patches/dwm-6.1-better-borders.diff
index e266243..5488b2e 100644
--- a/dwm.suckless.org/patches/dwm-6.1-better-borders.diff
+++ b/dwm.suckless.org/patches/dwm-6.1-better-borders.diff
_AT_@ -64,7 +64,22 @@ index 0362114..03fddb6 100644
  }
  
  void
-_AT_@ -2003,7 +2050,8 @@ updatewindowtype(Client *c)
+_AT_@ -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);
+ }
+
+_AT_@ -2003,7 +2029,8 @@ updatewindowtype(Client *c)
          Atom state = getatomprop(c, netatom[NetWMState]);
          Atom wtype = getatomprop(c, netatom[NetWMWindowType]);
  
Received on Thu Dec 31 2015 - 01:18:51 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 31 2015 - 01:24:14 CET