[hackers] [dwm] applied fix of toggletag by Jan Kaliszewski || Premysl Hruby

From: <hg_AT_suckless.org>
Date: Fri, 22 Aug 2008 13:26:40 +0000 (UTC)

changeset: 1338:04c5619da581
tag: tip
user: Premysl Hruby <dfenze_AT_gmail.com>
date: Fri Aug 22 15:26:30 2008 +0200
files: dwm.c
description:
applied fix of toggletag by Jan Kaliszewski

diff -r c4ecef7983b8 -r 04c5619da581 dwm.c
--- a/dwm.c Mon Aug 18 19:28:57 2008 +0100
+++ b/dwm.c Fri Aug 22 15:26:30 2008 +0200
@@ -1469,8 +1469,12 @@
 
 void
 toggletag(const Arg *arg) {
- unsigned int mask = sel->tags ^ (arg->ui & TAGMASK);
+ unsigned int mask;
 
+ if (!sel)
+ return;
+
+ mask = sel->tags ^ (arg->ui & TAGMASK);
         if(sel && mask) {
                 sel->tags = mask;
                 arrange();
Received on Fri Aug 22 2008 - 13:26:40 UTC

This archive was generated by hypermail 2.2.0 : Fri Aug 22 2008 - 13:36:06 UTC