diff options
| author | Nikita Langer <nikitalanger@icloud.com> | 2026-07-13 11:54:17 +0200 |
|---|---|---|
| committer | Nikita Langer <nikitalanger@icloud.com> | 2026-07-13 11:54:17 +0200 |
| commit | 543761462cbe77b73073240ab8a9fe2e2c5aa2d2 (patch) | |
| tree | f57a1f6ba7e930287d9688f957815cb6582cfca5 /patches/dwm-uselessgap-5.8.diff | |
| parent | a23a8597c5a5c9cdc213403c20fbb3916129df9a (diff) | |
| download | dwm-543761462cbe77b73073240ab8a9fe2e2c5aa2d2.tar.gz dwm-543761462cbe77b73073240ab8a9fe2e2c5aa2d2.tar.bz2 dwm-543761462cbe77b73073240ab8a9fe2e2c5aa2d2.tar.xz dwm-543761462cbe77b73073240ab8a9fe2e2c5aa2d2.zip | |
Gaps und neue layouts
Diffstat (limited to 'patches/dwm-uselessgap-5.8.diff')
| -rw-r--r-- | patches/dwm-uselessgap-5.8.diff | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/patches/dwm-uselessgap-5.8.diff b/patches/dwm-uselessgap-5.8.diff deleted file mode 100644 index 5d4a18d..0000000 --- a/patches/dwm-uselessgap-5.8.diff +++ /dev/null @@ -1,49 +0,0 @@ -diff -r 72e52c5333ef config.def.h ---- a/config.def.h Wed Nov 25 13:56:17 2009 +0000 -+++ 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"; - 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 Thu Mar 11 16:32:24 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,21 @@ - resize(Client *c, int x, int y, int w, int h, Bool interact) { - XWindowChanges wc; - -+ if(c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) { 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; -+ 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 |
