[dwm] [patch] Minor code cleanup

From: Martin Hurton <martin.hurton_AT_gmail.com>
Date: Tue, 12 Aug 2008 19:33:05 +0200

Hi,

the following patch slightly simplifies the view function plus
fixes some spelling errors. Comments are highly appreciated.

Cheers,
/Martin

diff -r 65c37b4be9cb dwm.c
--- a/dwm.c Mon Aug 04 17:39:36 2008 +0100
+++ b/dwm.c Tue Aug 12 19:05:53 2008 +0200
@@ -1640,11 +1640,11 @@
 
 void
 view(const Arg *arg) {
- if(arg && (arg->i & TAGMASK) == tagset[seltags])
+ if((arg->ui & TAGMASK) == tagset[seltags])
                 return;
         seltags ^= 1; /* toggle sel tagset */
- if(arg && (arg->ui & TAGMASK))
- tagset[seltags] = arg->i & TAGMASK;
+ if(arg->ui & TAGMASK)
+ tagset[seltags] = arg->ui & TAGMASK;
         clearurgent();
         arrange();
 }
Received on Tue Aug 12 2008 - 17:33:05 UTC

This archive was generated by hypermail 2.2.0 : Tue Aug 12 2008 - 17:36:04 UTC