[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Tue, 9 Mar 2010 07:10:14 +0000 (UTC)

changeset: 470:95eae60090bb
tag: tip
user: Jerome Andrieux <jerome_AT_gcu.info>
date: Tue Mar 09 08:10:10 2010 +0100
files: dwm.suckless.org/patches/dwm-uselessgap-5.8.diff dwm.suckless.org/patches/uselessgap.md
description:
Updated useless gap patch : 5.8, floating client bug fixed and removes border&gap in monocle mode


diff -r 2b3ca53ac28f -r 95eae60090bb dwm.suckless.org/patches/dwm-uselessgap-5.8.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-uselessgap-5.8.diff Tue Mar 09 08:10:10 2010 +0100
_AT_@ -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
+_AT_@ -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
+_AT_@ -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"
+_AT_@ -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 -r 2b3ca53ac28f -r 95eae60090bb dwm.suckless.org/patches/uselessgap.md
--- a/dwm.suckless.org/patches/uselessgap.md Mon Mar 08 12:30:42 2010 +0000
+++ b/dwm.suckless.org/patches/uselessgap.md Tue Mar 09 08:10:10 2010 +0100
_AT_@ -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
_AT_@ -34,6 +33,10 @@
 
 ## 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
Received on Tue Mar 09 2010 - 08:10:14 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:10 CEST