jokerboy avatar jokerboy committed f1a86e6

adding hasborder patch

Comments (0)

Files changed (22)

01-dwm-6.0-pertag2.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
 --- a/dwm.c	2012-04-15 12:41:18.000000000 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.569134717 +0300
++++ b/dwm.c	2012-06-17 16:13:12.238127513 +0300
 @@ -126,8 +126,6 @@ typedef struct {
  
  struct Monitor {

02-dwm-6.0-push.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.581134723 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.583134723 +0300
+--- a/dwm.c	2012-06-17 16:13:12.248127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.248127513 +0300
 @@ -263,6 +263,9 @@ static int xerrordummy(Display *dpy, XEr
  static int xerrorstart(Display *dpy, XErrorEvent *ee);
  static void zoom(const Arg *arg);

03-dwm-6.0-cycle.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.594134723 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.597134723 +0300
+--- a/dwm.c	2012-06-17 16:13:12.268127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.268127513 +0300
 @@ -266,6 +266,9 @@ static void bstack(Monitor *m);
  static Client *prevtiled(Client *c);
  static void pushup(const Arg *arg);

04-dwm-6.0-gaplessgrid.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.608134724 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.611134724 +0300
+--- a/dwm.c	2012-06-17 16:13:12.298127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.298127513 +0300
 @@ -269,6 +269,7 @@ static void pushdown(const Arg *arg);
  static void cycle(const Arg *arg);
  static int shifttag(int dist);

05-dwm-6.0-pidgin.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.622134725 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.624134725 +0300
+--- a/dwm.c	2012-06-17 16:13:12.308127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.318127513 +0300
 @@ -270,6 +270,7 @@ static void cycle(const Arg *arg);
  static int shifttag(int dist);
  static void tagcycle(const Arg *arg);

06-dwm-6.0-monocle_count.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.635134725 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.638134726 +0300
+--- a/dwm.c	2012-06-17 16:13:12.328127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.328127513 +0300
 @@ -763,6 +763,7 @@ drawbar(Monitor *m) {
  	int x;
  	unsigned int i, occ = 0, urg = 0;

07-dwm-6.0-monocle_borderless.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.649134726 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.652134726 +0300
+--- a/dwm.c	2012-06-17 16:13:12.338127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.338127513 +0300
 @@ -1410,7 +1410,11 @@ resizeclient(Client *c, int x, int y, in
  	c->oldy = c->y; c->y = wc.y = y;
  	c->oldw = c->w; c->w = wc.width = w;

08-dwm-6.0-clicktofocus.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.662134727 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.665134727 +0300
+--- a/dwm.c	2012-06-17 16:13:12.348127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.358127513 +0300
 @@ -866,6 +866,8 @@ drawtext(const char *text, unsigned long
  
  void

09-dwm-6.0-viewontag.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.675134728 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.678134728 +0300
+--- a/dwm.c	2012-06-17 16:13:12.368127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.368127513 +0300
 @@ -1752,6 +1752,8 @@ tag(const Arg *arg) {
  		selmon->sel->tags = arg->ui & TAGMASK;
  		focus(NULL);

10-dwm-6.0-scratchpad.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.689134729 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.692134729 +0300
+--- a/dwm.c	2012-06-17 16:13:12.378127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.378127513 +0300
 @@ -271,6 +271,7 @@ static int shifttag(int dist);
  static void tagcycle(const Arg *arg);
  static void gaplessgrid(Monitor *m);

11-dwm-6.0-togglemax.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.703134730 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.705134730 +0300
+--- a/dwm.c	2012-06-17 16:13:12.398127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.398127513 +0300
 @@ -272,6 +272,7 @@ static void tagcycle(const Arg *arg);
  static void gaplessgrid(Monitor *m);
  static void pidgin(Monitor *m);

12-dwm-6.0-autoresize.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.717134731 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.720134731 +0300
+--- a/dwm.c	2012-06-17 16:13:12.408127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.408127513 +0300
 @@ -90,7 +90,7 @@ struct Client {
  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
  	int bw, oldbw;

13-dwm-6.0-increase_mfact_limit.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.730134731 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.733134732 +0300
+--- a/dwm.c	2012-06-17 16:13:12.418127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.428127513 +0300
 @@ -1658,7 +1658,7 @@ setmfact(const Arg *arg) {
  	if(!arg || !selmon->lt[selmon->sellt]->arrange)
  		return;

14-dwm-6.0-remember-tags.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.743134732 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.747134732 +0300
+--- a/dwm.c	2012-06-17 16:13:12.438127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.438127513 +0300
 @@ -62,6 +62,7 @@ enum { NetSupported, NetWMName, NetWMSta
         NetWMFullscreen, NetActiveWindow, NetWMWindowType,
         NetWMWindowTypeDialog, NetClientList, NetLast };     /* EWMH atoms */

15-dwm-6.0-centred-floating.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.758134733 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.761134733 +0300
+--- a/dwm.c	2012-06-17 16:13:12.448127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.458127513 +0300
 @@ -91,7 +91,7 @@ struct Client {
  	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
  	int bw, oldbw;

16-dwm-6.0-focusurgent.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.772134734 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.775134734 +0300
+--- a/dwm.c	2012-06-17 16:13:12.468127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.468127513 +0300
 @@ -276,6 +276,7 @@ static void pidgin(Monitor *m);
  static void togglescratch(const Arg *arg);
  static void togglemax(const Arg *arg);

17-dwm-6.0-statuscolors.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.785134735 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.789134735 +0300
+--- a/dwm.c	2012-06-17 16:13:12.478127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.488127513 +0300
 @@ -54,6 +54,7 @@
  #define HEIGHT(X)               ((X)->h + 2 * (X)->bw)
  #define TAGMASK                 ((1 << LENGTH(tags)) - 1)

18-dwm-6.0-save_floats.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.800134736 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.803134736 +0300
+--- a/dwm.c	2012-06-17 16:13:12.498127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.498127513 +0300
 @@ -89,6 +89,7 @@ struct Client {
  	float mina, maxa;
  	int x, y, w, h;

19-dwm-6.0-fix_keypress_deprecated.diff

-http://hg.punctweb.ro
+Homepage: http://hg.punctweb.ro
 
---- a/dwm.c	2012-04-15 15:03:17.814134737 +0300
-+++ b/dwm.c	2012-04-15 15:03:17.817134737 +0300
+--- a/dwm.c	2012-06-17 16:13:12.508127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.508127513 +0300
 @@ -36,6 +36,7 @@
  #include <X11/Xlib.h>
  #include <X11/Xproto.h>

20-dwm-6.0-hasborder.diff

+Homepage: http://hg.punctweb.ro
+
+--- a/dwm.c	2012-06-17 16:13:12.528127513 +0300
++++ b/dwm.c	2012-06-17 16:13:12.528127513 +0300
+@@ -94,7 +94,7 @@ struct Client {
+ 	int basew, baseh, incw, inch, maxw, maxh, minw, minh;
+ 	int bw, oldbw;
+ 	unsigned int tags;
+-	Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, needresize, iscentred;
++	Bool isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, needresize, iscentred, hasborder;
+ 	Client *next;
+ 	Client *snext;
+ 	Monitor *mon;
+@@ -165,6 +165,7 @@ typedef struct {
+ 	unsigned int tags;
+ 	Bool isfloating;
+ 	Bool iscentred;
++	Bool hasborder;
+ 	int monitor;
+ } Rule;
+ 
+@@ -334,6 +335,7 @@ applyrules(Client *c) {
+ 	/* rule matching */
+ 	c->isfloating = c->tags = 0;
+ 	c->iscentred = 1;
++	c->hasborder = 1;
+ 	XGetClassHint(dpy, c->win, &ch);
+ 	class    = ch.res_class ? ch.res_class : broken;
+ 	instance = ch.res_name  ? ch.res_name  : broken;
+@@ -346,6 +348,7 @@ applyrules(Client *c) {
+ 		{
+ 			c->isfloating = r->isfloating;
+ 			c->iscentred = r->iscentred;
++			c->hasborder = r->hasborder;
+ 			c->tags |= r->tags;
+ 			for(m = mons; m && m->num != r->monitor; m = m->next);
+ 			if(m)
+@@ -1252,7 +1255,7 @@ 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);
+-	c->bw = borderpx;
++	c->bw = c->hasborder ? borderpx : 0;
+ 
+ 	if(!strcmp(c->name, scratchpadname)) {
+ 		c->mon->tagset[c->mon->seltags] |= c->tags = scratchtag;
         "16-${pkgname}-${pkgver}-focusurgent.diff"
         "17-${pkgname}-${pkgver}-statuscolors.diff"
         "18-${pkgname}-${pkgver}-save_floats.diff"
-        "19-${pkgname}-${pkgver}-fix_keypress_deprecated.diff")
+        "19-${pkgname}-${pkgver}-fix_keypress_deprecated.diff"
+        "20-${pkgname}-${pkgver}-hasborder.diff")
 sha256sums=('3ce11e570633e35affad9be1b3421d2eb494641472eed5d02a02acb943a0de9c'
-            'c7b633961e477d07e12b81da13751d1e312611005f6c64c734963227fb4e2edf'
-            'e67972210c42a7e68782613d88814f97ec1ee62d528f64c98b3f3c0a28fdc19a'
-            '1f47cbc154e1c65dc45b572ace29e133eec323afbdd3e95fb8e1d49c8c2db149'
-            'ecacde51b111d3600d2bfe35de38743468043bddd1259ca7bb85c26c7cc3726f'
-            '7c3d39c9f4e2aaccf8c37e126fd5987c20de78105f32864cc0b6fef6d2e47a81'
-            'f5c52a1a13ec5224d3be1374caa176328ef3c24beaed6ba5b3138e34934b0239'
-            '3c4475fe8035d11ece90fad004c2d13f20da85d00923e9a62f3108d3c2f0af39'
-            '93f8862a40f9f47075f97c08016c4b4e5b8917ac371bc4c03c9f6c81e4bf440f'
-            '4cbf510d062780ad005f8c1dea3e2577375c9957b6219cd48a32a2b692957453'
-            '5d93ab6758e05798c9c887c893a48fa0958ba50d1e2fefa570a19496138855eb'
-            'c11ae33144b7f3f16b14720afe228af0dddaff6dbb601df26eb9d98600d5e774'
-            '29960b57faf9bc435ca48fc0f0fe245c37cb0f7f3a1a9d3861a4051a7018a092'
-            '1a990e6ba0e81acd732c44013ecc6ef67d82e35bca585fb59265cc41952413ff'
-            'e66f715b19006bf62e3a614698c881e07d94507078fd5f9af0d7230479583e54'
-            'c1a52a6f1abef2300e874ccec7889b7c99386d9e174ffad3c32b4f96f96fcbea'
-            'ce0adc8441329669543b74d279e014a71f14665ffed34487e5c2a001ce88dc4a'
-            '0b381b2492c875b463fed223dcf82a35ffa284933781acb69ddef8f2a8d660b0'
-            'faabb11fd8f18c592c8ce9151f952019f8c3d9d470969b824b175d67aab037c0'
-            'fa56cbbacf8eecdb3af5bd93337e03bce72ad31a14cd0bc9769492a88f3bed68'
-            'e04af2d6c168faff7a410d215efabe9435537253db51abf541be424c7a9cbd13')
+            'b35289b99e8ae29a8823050e126da31917a4404f951bd480edcc98e0e2df9577'
+            '630e93e9129f6c8cdc9c65c41e251bc1df821afa6224bc35353296358cbd75fa'
+            'e0694c6de25510bc6a5124e15f4e6f85ac265ae1daeefb3c1348bd47318397b4'
+            '7ef0ad095fb11d25d7116d41a3f83bf0f638e434e5bc4db491df566109b4e9bf'
+            'da0165421e339afffe107239d7418db5a5198b05223e7d96e5d52e920a2fb849'
+            '36684f32fb8f6c1f7954c3c2193a456830951b49053e4bb196a064aa68ecc8e2'
+            '1e203d77d50edc28ac4df64500ed14338d1f173ac4cb72d9de8a5e3beca97a82'
+            'ed8ec886ac2f3f9dd83082b4e01cd56b84bf778c043881028ed2c47b32e191c0'
+            '3cf21c46fa98fc973c8c0c3cf6b1b69d4ab2071c1b6d9306b42f36bde8de2d0e'
+            'a77d206dd55d122f6539ab2a7e2b6b27de90e6133b60cb0c60e232dbf9bc3705'
+            '63aaed1717c68cdf2f21a82598c16466278afcb26a77bf91464119c9372b2935'
+            'fdc45d62a3c83612671488c670a9536cc1b04f779a629e6f9aa40671e487ffb6'
+            'ff92690eb460a2f0384f67c03c2a5130e312b91cec6b5a8920edcb99bd8f46b6'
+            'dee87f25956b9c8b7ff62278e2f07955a820d4946dee610be4d1d01251a271b3'
+            '9eb5e0755bb4e7b403524a3eeffdc4bec72a5da4bf44a1419547a81796aa613f'
+            'a5f34ac38928c6b8a6b5123b29ac65a38f25c0b864952b8210d54c96a6305b52'
+            'a124f6e8c4a7ec4117a9ab1f0cbb57c2ff919ed09ebf64d03da4db4c848f67cc'
+            '545c1ab885c3dec096aa281360496b42a64a37ddf7e2696398f0c391f81f9302'
+            'f7ecfaaefd52cc65fedd6b8c9ef726af3e9d1cac5bce4949eaa9e1c7fa6294f9'
+            '066f8e0cdee4d28c448ab0146da10dc6270f0e36ef2c18f5889fbd324bfa095a'
+            '6aa240dad86e18fa8104da5a948f807a96d6ac0b88a3e5dbc46c7da5f997bc48')
 
 build() {
   cd "${srcdir}" && cd "`find . -type d -name dwm-\*`"
 static const Bool viewontag         = True;     /* Switch view on tag switch */
 
 static const Rule rules[] = {
-	/* class          instance     title       tags mask     isfloating   iscentred   monitor */
-	{ "Gimp",         NULL,        NULL,       0,            True,        False,      -1 },
-	{ "MPlayer",      NULL,        NULL,       0,            True,        True,       -1 },
-	{ "mplayer2",     NULL,        NULL,       0,            True,        True,       -1 },
-	{ "Vlc",          NULL,        NULL,       0,            True,        True,       -1 },
-	{ "XFontSel",     NULL,        NULL,       0,            True,        True,       -1 },
-	{ "Kcalc",        NULL,        NULL,       0,            True,        True,       -1 },
-	{ "Komodo Edit",  NULL,        NULL,       0,            True,        True,       -1 },
-	{ "Komodo Edit",  "Komodo",    NULL,       0,            False,       False,      -1 },
-	{ "Komodo Edit",  NULL,        "Find",     0,            True,        True,       -1 },
-	{ "Chromium",     NULL,        NULL,       1 << 2,       False,       False,      -1 },
-	{ "Firefox",      NULL,        NULL,       1 << 2,       True,        True,       -1 },
-	{ "Firefox",      "Navigator", NULL,       1 << 2,       False,       False,      -1 },
-	{ "Ktorrent",     NULL,        NULL,       1 << 4,       False,       False,      -1 },
-	{ "VirtualBox",   NULL,        NULL,       1 << 5,       False,       False,      -1 },
-	{ "VBoxSDL",      NULL,        NULL,       1 << 5,       False,       False,      -1 },
-	{ "Xephyr",       NULL,        NULL,       0,            False,       False,      -1 },
-	{ "Opera",        NULL,        NULL,       1 << 2,       False,       False,      -1 },
-	{ "Pidgin",       NULL,        NULL,       1 << 3,       False,       False,      -1 },
-	{ "Pidgin",       NULL,        "Pidgin",   1 << 3,       True,        True,       -1 },
-	{ "Gyachi",       NULL,        NULL,       1 << 3,       False,       False,      -1 },
+	/* class          instance     title       tags mask     isfloating   iscentred   hasborder   monitor */
+	{ "Gimp",         NULL,        NULL,       0,            True,        False,      True,       -1 },
+	{ "MPlayer",      NULL,        NULL,       0,            True,        True,       True,       -1 },
+	{ "mplayer2",     NULL,        NULL,       0,            True,        True,       True,       -1 },
+	{ "Vlc",          NULL,        NULL,       0,            True,        True,       True,       -1 },
+	{ "XFontSel",     NULL,        NULL,       0,            True,        True,       True,       -1 },
+	{ "Kcalc",        NULL,        NULL,       0,            True,        True,       True,       -1 },
+	{ "Komodo Edit",  NULL,        NULL,       0,            True,        True,       True,       -1 },
+	{ "Komodo Edit",  "Komodo",    NULL,       0,            False,       False,      True,       -1 },
+	{ "Komodo Edit",  NULL,        "Find",     0,            True,        True,       True,       -1 },
+	{ "Chromium",     NULL,        NULL,       1 << 2,       False,       False,      True,       -1 },
+	{ "Firefox",      NULL,        NULL,       1 << 2,       True,        True,       True,       -1 },
+	{ "Firefox",      "Navigator", NULL,       1 << 2,       False,       False,      True,       -1 },
+	{ "Ktorrent",     NULL,        NULL,       1 << 4,       False,       False,      True,       -1 },
+	{ "VirtualBox",   NULL,        NULL,       1 << 5,       False,       False,      True,       -1 },
+	{ "VBoxSDL",      NULL,        NULL,       1 << 5,       False,       False,      True,       -1 },
+	{ "Xephyr",       NULL,        NULL,       0,            False,       False,      True,       -1 },
+	{ "Opera",        NULL,        NULL,       1 << 2,       False,       False,      True,       -1 },
+	{ "Pidgin",       NULL,        NULL,       1 << 3,       False,       False,      True,       -1 },
+	{ "Pidgin",       NULL,        "Pidgin",   1 << 3,       True,        True,       True,       -1 },
+	{ "Gyachi",       NULL,        NULL,       1 << 3,       False,       False,      True,       -1 },
 };
 
 /* layout(s) */
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.