# HG changeset patch # User Premysl Hruby # Date 1219411590 -7200 # Node ID 04c5619da581f9d1e2139bea55f6afe60149ce82 # Parent c4ecef7983b867e071fd3f5afd64931bf3d12457 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();