Remove useless variables

This commit is contained in:
speediegq 2022-08-23 19:39:09 +02:00
parent a6819845af
commit 9803b2d5ab

View file

@ -4839,17 +4839,12 @@ view(const Arg *arg)
if (selmon->previewshow && !selmon->mouseactivated) if (selmon->previewshow && !selmon->mouseactivated)
return; return;
XUnmapWindow(dpy, selmon->tagwin);
selmon->previewshow = 0;
if(arg->ui && (arg->ui & TAGMASK) == selmon->tagset[selmon->seltags]) if(arg->ui && (arg->ui & TAGMASK) == selmon->tagset[selmon->seltags])
return; return;
getpreview(); getpreview();
//selmon->seltags ^= 1; /* toggle sel tagset */
for (m = mons; m; m = m->next) for (m = mons; m; m = m->next)
m->seltags ^= 1; m->seltags ^= 1;
if (arg->ui & TAGMASK) { if (arg->ui & TAGMASK) {
//selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
for (m = mons; m; m = m->next) for (m = mons; m; m = m->next)
m->tagset[m->seltags] = arg->ui & TAGMASK; m->tagset[m->seltags] = arg->ui & TAGMASK;