aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-26 20:31:36 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-26 20:31:36 -0500
commitfc8b2a8335365dbf3966f0a9bb783a4cb33fdcbf (patch)
tree4468777509e7be05e60cd81330a1372cbd7bfd52 /dwl.c
parentc00faae26370682c307cfb107b12123d10d49053 (diff)
fix bad condition
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 0bb551e..cc08787 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2451,7 +2451,7 @@ urgent(struct wl_listener *listener, void *data)
void
view(const Arg *arg)
{
- if (selmon && (arg->ui & TAGMASK) == selmon->tagset[selmon->seltags])
+ if (!selmon || (arg->ui & TAGMASK) == selmon->tagset[selmon->seltags])
return;
selmon->seltags ^= 1; /* toggle sel tagset */
if (arg->ui & TAGMASK)