Fixing minor annoyance with the switchtag patch. When closing a window the tag switches back to the previous tag. This fix prevents that from happening when the client has since moved to another monitor.

This commit is contained in:
bakkeby 2020-01-25 18:37:35 +01:00
parent fa6e3d9500
commit 60209c98d7

4
dwm.c
View File

@ -2634,6 +2634,10 @@ sendmon(Client *c, Monitor *m)
focus(NULL);
arrange(NULL);
#endif // EXRESIZE_PATCH
#if SWITCHTAG_PATCH
if (c->switchtag)
c->switchtag = 0;
#endif // SWITCHTAG_PATCH
}
void