diff options
author | Premysl Hruby | 2008-08-22 15:26:30 +0200 |
---|---|---|
committer | Premysl Hruby | 2008-08-22 15:26:30 +0200 |
commit | abd63c728721f6f402c68fdc3786217cba468925 (patch) | |
tree | 55f954f2b142dd9d56c6595f566f7488fd450223 | |
parent | 3d71448e64b6190840ad67aadf1db215dc1c4bbd (diff) | |
download | aur-abd63c728721f6f402c68fdc3786217cba468925.tar.gz |
applied fix of toggletag by Jan Kaliszewski
-rw-r--r-- | dwm.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1469,8 +1469,12 @@ togglefloating(const Arg *arg) { 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(); |