fix bad condition

This commit is contained in:
Leonardo Hernández Hernández 2022-09-26 20:31:36 -05:00
parent c00faae263
commit fc8b2a8335
No known key found for this signature in database
GPG key ID: E538897EE11B9624

2
dwl.c
View file

@ -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)