commit 385bf69f9ca7aaa07153284681c5b51d079b5a2c
Author: Ivan Tham <pickfire_AT_riseup.net>
Date: Mon Nov 9 09:34:16 2015 +0800
[dwm][better-borders] Update
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 1ef049f..b305ebd 100644
--- a/dwm.suckless.org/patches/dwm-6.1-better-borders.diff
+++ b/dwm.suckless.org/patches/dwm-6.1-better-borders.diff
_AT_@ -1,13 +1,8 @@
-Author: Eric Pruitt,
https://github.com/ericpruitt/
-Description: This patch makes dwm remove borders when only one, non-floating
-window is visible. Additionally, any windows that are the same size as the
-monitor are considered full-screen and their borders removed accordingly.
-
diff --git a/dwm.c b/dwm.c
-index ffc8864..3ce8ebe 100644
+index 0362114..5c40060 100644
--- a/dwm.c
+++ b/dwm.c
-_AT_@ -308,6 +308,34 @@ applyrules(Client *c) {
+_AT_@ -310,6 +310,34 @@ applyrules(Client *c)
c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : c->mon->tagset[c->mon->seltags];
}
_AT_@ -39,26 +34,26 @@ index ffc8864..3ce8ebe 100644
+ }
+}
+
- Bool
- applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact) {
- Bool baseismin;
-_AT_@ -376,10 +404,13 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact) {
-
+ int
+ applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact)
+ {
+_AT_@ -379,10 +407,13 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact)
void
- arrange(Monitor *m) {
-- if(m)
-+ if(m) {
+ arrange(Monitor *m)
+ {
+- if (m)
++ if (m) {
+ adjustborders(m);
showhide(m->stack);
-- else for(m = mons; m; m = m->next)
-+ } else for(m = mons; m; m = m->next) {
+- else for (m = mons; m; m = m->next)
++ } else for (m = mons; m; m = m->next) {
+ adjustborders(m);
showhide(m->stack);
+ }
- if(m) {
+ if (m) {
arrangemon(m);
restack(m);
-_AT_@ -1036,7 +1067,20 @@ manage(Window w, XWindowAttributes *wa) {
+_AT_@ -1061,7 +1092,20 @@ manage(Window w, XWindowAttributes *wa)
/* only fix client y-offset, if the client center might cover the bar */
c->y = MAX(c->y, ((c->mon->by == c->mon->my) && (c->x + (c->w / 2) >= c->mon->wx)
&& (c->x + (c->w / 2) < c->mon->wx + c->mon->ww)) ? bh : c->mon->my);
_AT_@ -80,13 +75,3 @@ index ffc8864..3ce8ebe 100644
wc.border_width = c->bw;
XConfigureWindow(dpy, w, CWBorderWidth, &wc);
-_AT_@ -1933,7 +1977,8 @@ updatewindowtype(Client *c) {
- Atom state = getatomprop(c, netatom[NetWMState]);
- Atom wtype = getatomprop(c, netatom[NetWMWindowType]);
-
-- if(state == netatom[NetWMFullscreen])
-+ if(state == netatom[NetWMFullscreen] ||
-+ (WIDTH(c) == (c->mon->mx + c->mon->mw) && (HEIGHT(c) == (c->mon->my + c->mon->mh))))
- setfullscreen(c, True);
- if(wtype == netatom[NetWMWindowTypeDialog])
- c->isfloating = True;
Received on Mon Nov 09 2015 - 02:41:20 CET