unfloatvisible patch

This commit is contained in:
Sravan Balaji
2020-11-24 10:52:59 -05:00
parent 9f219c6a08
commit 3935b19814
4 changed files with 59 additions and 1 deletions

14
unfloat.c Normal file
View File

@@ -0,0 +1,14 @@
void
unfloatvisible(const Arg *arg)
{
Client *c;
for (c = selmon->clients; c; c = c->next)
if (ISVISIBLE(c) && c->isfloating)
c->isfloating = c->isfixed;
if (arg && arg->v)
setlayout(arg);
else
arrange(selmon);
}