sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b88fd6a22ddf1d1dc9c100da30a09694c4c4559d
parent 7b1b488dd9c1076e5d07f150c07c1f4d5534ab99
Author: Jerome Andrieux <jerome@gcu.info>
Date:   Tue,  9 Mar 2010 08:10:10 +0100

Updated useless gap patch : 5.8, floating client bug fixed and removes border&gap in monocle mode
Diffstat:
Adwm.suckless.org/patches/dwm-uselessgap-5.8.diff | 55+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mdwm.suckless.org/patches/uselessgap.md | 7+++++--
2 files changed, 60 insertions(+), 2 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-uselessgap-5.8.diff b/dwm.suckless.org/patches/dwm-uselessgap-5.8.diff @@ -0,0 +1,55 @@ +diff -r 72e52c5333ef config.def.h +--- a/config.def.h Wed Nov 25 13:56:17 2009 +0000 ++++ b/config.def.h Tue Mar 09 07:58:46 2010 +0100 +@@ -9,6 +9,7 @@ + static const char selbgcolor[] = "#0066ff"; + static const char selfgcolor[] = "#ffffff"; + static const unsigned int borderpx = 1; /* border pixel of windows */ ++static const unsigned int gappx = 6; /* gap pixel between windows */ + static const unsigned int snap = 32; /* snap pixel */ + static const Bool showbar = True; /* False means no bar */ + static const Bool topbar = True; /* False means bottom bar */ +diff -r 72e52c5333ef dwm.c +--- a/dwm.c Wed Nov 25 13:56:17 2009 +0000 ++++ b/dwm.c Tue Mar 09 07:58:46 2010 +0100 +@@ -269,6 +269,7 @@ + static DC dc; + static Monitor *mons = NULL, *selmon = NULL; + static Window root; ++static int globalborder ; + + /* configuration, allows nested code to access above variables */ + #include "config.h" +@@ -1299,16 +1300,23 @@ + resize(Client *c, int x, int y, int w, int h, Bool interact) { + XWindowChanges wc; + +- if(applysizehints(c, &x, &y, &w, &h, interact)) { +- c->x = wc.x = x; +- c->y = wc.y = y; +- c->w = wc.width = w; +- c->h = wc.height = h; +- wc.border_width = c->bw; +- XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); +- configure(c); +- XSync(dpy, False); ++ if (selmon->lt[selmon->sellt]->arrange == monocle) ++ { ++ globalborder = 0 - borderpx ; + } ++ else ++ if(c->isfloating) { globalborder = 0 ; } ++ else { globalborder = gappx ; } ++ if(applysizehints(c, &x, &y, &w, &h, interact)) { ++ c->x = wc.x = x + globalborder; ++ c->y = wc.y = y + globalborder; ++ c->w = wc.width = w - 2 * globalborder ; ++ c->h = wc.height = h - 2 * globalborder ; ++ wc.border_width = c->bw; ++ XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); ++ configure(c); ++ XSync(dpy, False); ++ } + } + + void diff --git a/dwm.suckless.org/patches/uselessgap.md b/dwm.suckless.org/patches/uselessgap.md @@ -2,8 +2,7 @@ ## Description -This patch adds useless gap between windows, for aesthetic purpose. -I happen to find it easier on the eyes ... +This patch adds useless gap between windows and removes everything (gap and border) in monocle mode for aesthetic purpose. The size of the gap is configured in config.def.h. ## Example @@ -34,6 +33,10 @@ The size of the gap is configured in config.def.h. ## Download + * [dwm-uselessgap-5.8.diff](dwm-uselessgap-5.8.diff) (0.7K) (20100308) + + Fix floating clients bug and remove all borders in monocle mode. + * [dwm-gap-5.7.2.diff](dwm-gap-5.7.2.diff) (0.7K) (20091215) ## Author