[wiki] [official] Update monocle count patch for dwm 5.2 || jpic

From: <hg_AT_suckless.org>
Date: Tue, 14 Oct 2008 08:13:39 +0100 (BST)

changeset: 161:a44f480ba6fc
user: jpic
date: Mon Oct 13 00:51:57 2008 +0200
files: dwm/patches/dwm-5.2-monocle_count.patch dwm/patches/monocle_count.md
description:
Update monocle count patch for dwm 5.2


diff -r cb9fcbb0e779 -r a44f480ba6fc dwm/patches/dwm-5.2-monocle_count.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm/patches/dwm-5.2-monocle_count.patch Mon Oct 13 00:51:57 2008 +0200
_AT_@ -0,0 +1,32 @@
+--- dwm-5.2/dwm.c 2008-09-09 21:46:17.000000000 +0200
++++ dwm-5.2-monocle_count/dwm.c 2008-10-13 00:04:38.000000000 +0200
+_AT_@ -491,7 +491,8 @@
+
+ void
+ drawbar(void) {
+- int x;
++ int x, a= 0, s= 0;
++ char posbuf[10];
+ unsigned int i, occ = 0, urg = 0;
+ unsigned long *col;
+ Client *c;
+_AT_@ -517,6 +518,19 @@
+ }
+ else
+ x = dc.x;
++ if(lt[sellt]->arrange == monocle){
++ dc.x= x;
++ for(c= nexttiled(clients), a= 0, s= 0; c; c= nexttiled(c->next), a++)
++ if(c == stack)
++ s= a;
++ if(!s && a)
++ s= a;
++ snprintf(posbuf, LENGTH(posbuf), "[%d/%d]", s, a);
++ dc.w= TEXTW(posbuf);
++ drawtext(posbuf, dc.norm, False);
++ x= dc.x + dc.w;
++ }
++
+ dc.w = TEXTW(stext);
+ dc.x = ww - dc.w;
+ if(dc.x < x) {
diff -r cb9fcbb0e779 -r a44f480ba6fc dwm/patches/monocle_count.md
--- a/dwm/patches/monocle_count.md Sat Oct 04 21:47:28 2008 +0100
+++ b/dwm/patches/monocle_count.md Mon Oct 13 00:51:57 2008 +0200
_AT_@ -8,4 +8,5 @@
 
 Download
 --------
+* [dwm-5.2-monocle_count.diff](http://www.suckless.org/dwm/patches/dwm-5.1-monocle_count.diff)
 * [dwm-5.1-monocle_count.diff](http://v4hn.de/patches/dwm-5.1-monocle_count.diff)
Received on Tue Oct 14 2008 - 09:13:39 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:26 CEST