sites

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

commit e5aedcc8c542f6be6a6eaafc818cd531202e5f6b
parent b88fd6a22ddf1d1dc9c100da30a09694c4c4559d
Author: Jerome Andrieux <jerome@gcu.info>
Date:   Thu, 11 Mar 2010 16:33:24 +0100

Updated useless gap patch : 5.8, floating client bug fixed and removes border&gap in monocle mode BIS
Diffstat:
Mdwm.suckless.org/patches/dwm-uselessgap-5.8.diff | 42++++++++++++++++++------------------------
1 file changed, 18 insertions(+), 24 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-uselessgap-5.8.diff b/dwm.suckless.org/patches/dwm-uselessgap-5.8.diff @@ -1,6 +1,6 @@ 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 ++++ b/config.def.h Thu Mar 11 16:32:24 2010 +0100 @@ -9,6 +9,7 @@ static const char selbgcolor[] = "#0066ff"; static const char selfgcolor[] = "#ffffff"; @@ -11,7 +11,7 @@ diff -r 72e52c5333ef config.def.h 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 ++++ b/dwm.c Thu Mar 11 16:32:24 2010 +0100 @@ -269,6 +269,7 @@ static DC dc; static Monitor *mons = NULL, *selmon = NULL; @@ -20,35 +20,29 @@ diff -r 72e52c5333ef dwm.c /* configuration, allows nested code to access above variables */ #include "config.h" -@@ -1299,16 +1300,23 @@ +@@ -1299,16 +1300,21 @@ resize(Client *c, int x, int y, int w, int h, Bool interact) { XWindowChanges wc; -- if(applysizehints(c, &x, &y, &w, &h, interact)) { ++ if(c->isfloating) { globalborder = 0 ; } ++ else { ++ if (selmon->lt[selmon->sellt]->arrange == monocle) { globalborder = 0 - borderpx ; } ++ else { globalborder = gappx ; } ++ } + 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); ++ 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); +- } + } }