update something, i don't remember what

This commit is contained in:
Arthur Khachaturov 2024-05-10 16:05:28 +03:00
parent e4a36c0439
commit 649b15e02f
No known key found for this signature in database
GPG key ID: 542ADA2564CCFDDB
4 changed files with 34 additions and 18 deletions

14
dwm.c
View file

@ -1811,7 +1811,19 @@ tagmon(const Arg *arg)
{
if (!selmon->sel || !mons->next)
return;
sendmon(selmon->sel, dirtomon(arg->i));
int restore_fullscreen = 0;
Client *window = selmon->sel;
if (window->isfullscreen) {
setfullscreen(window, 0);
restore_fullscreen = 1;
}
sendmon(window, dirtomon(arg->i));
if (restore_fullscreen)
setfullscreen(window, 1);
}
void