Commits

Julien Jehannet committed 586ef97

use guards for dwm patches

  • Participants
  • Parent commits 55066cb

Comments (0)

Files changed (2)

WIP-dwm-monitor.diff

-# HG changeset patch
-# Parent 1c41061ed2190bda2939dfac4819f17a2dfa92ae
-diff --git a/dwm.c b/dwm.c
---- a/dwm.c
-+++ b/dwm.c
-@@ -1183,13 +1183,17 @@ maprequest(XEvent *e) {
- void
- monocle(Monitor *m) {
- 	unsigned int n = 0;
-+	unsigned int s = 0;
- 	Client *c;
- 
- 	for(c = m->clients; c; c = c->next)
- 		if(ISVISIBLE(c))
- 			n++;
-+		if(c == selmon->sel)
-+			s=n;
- 	if(n > 0) /* override layout symbol */
--		snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
-+		snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d/%d]", s, n);
-+		//snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n);
- 	for(c = nexttiled(m->clients); c; c = nexttiled(c->next))
- 		resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, False);
- }
-#dmenu-config.h
-#dmenu-xrdb.diff
-#dmenu-ms_nl.diff
-#dmenu-xresources.diff
-dwm-config.h
-dwm-current_desktop.diff
-dwm-panel.diff
-dwm-5.9-bstack.diff
-dwm-5.7.2-urgentborder.diff
-dwm-r1522-viewontag.diff
-dwm-nextprevtag.inc
-dwm-5.8.2-monocle_count.diff
-dwm-r1507-focusatom.diff
-dwm-6.0-systray.diff
-WIP-dwm-monitor.diff
+dmenu-config.h
+dmenu-xrdb.diff
+dmenu-ms_nl.diff
+dmenu-xresources.diff
+dwm-config.h #+dwm
+dwm-current_desktop.diff #+dwm
+dwm-panel.diff #+dwm
+dwm-5.9-bstack.diff #+dwm
+dwm-5.7.2-urgentborder.diff #+dwm
+dwm-r1522-viewontag.diff #+dwm
+dwm-nextprevtag.inc #+dwm
+dwm-5.8.2-monocle_count.diff #+dwm
+dwm-r1507-focusatom.diff #+dwm
+dwm-6.0-systray.diff #+dwm
 tabbed-config.h
 tabbed-autostart-xterm
 tabbed-autoclose