[hackers] [dwm] hotfix || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Thu, 2 Jul 2009 19:39:01 +0000 (UTC)

changeset: 1446:c3ea02998d91
tag: tip
user: Anselm R Garbe <anselm_AT_garbe.us>
date: Thu Jul 02 20:38:56 2009 +0100
files: dwm.c
description:
hotfix

diff -r 4ad1f24d38ec -r c3ea02998d91 dwm.c
--- a/dwm.c Thu Jul 02 20:37:26 2009 +0100
+++ b/dwm.c Thu Jul 02 20:38:56 2009 +0100
@@ -625,9 +625,10 @@
 dirtomon(int dir) {
         Monitor *m = NULL;
 
- if(dir > 0)
+ if(dir > 0) {
                 if(!(m = selmon->next))
                         m = mons;
+ }
         else {
                 if(selmon == mons)
                         for(m = mons; m->next; m = m->next);
@@ -1521,7 +1522,7 @@
 void
 tagmon(const Arg *arg) {
         if(!selmon->sel || !mons->next)
- return
+ return;
         sendmon(selmon->sel, dirtomon(arg->i));
 }
 
Received on Thu Jul 02 2009 - 19:39:01 UTC

This archive was generated by hypermail 2.2.0 : Thu Jul 02 2009 - 19:48:06 UTC