mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2026-02-06 15:13:45 +01:00
21 lines
373 B
C
21 lines
373 B
C
|
|
void
|
||
|
|
togglealwaysontop(const Arg *arg)
|
||
|
|
{
|
||
|
|
Client *c = selmon->sel;
|
||
|
|
|
||
|
|
if (!c)
|
||
|
|
return;
|
||
|
|
#if !FAKEFULLSCREEN_PATCH
|
||
|
|
#if FAKEFULLSCREEN_CLIENT_PATCH
|
||
|
|
if (c->isfullscreen && !c->fakefullscreen)
|
||
|
|
return;
|
||
|
|
#else
|
||
|
|
if (c->isfullscreen)
|
||
|
|
return;
|
||
|
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
||
|
|
#endif // FAKEFULLSCREEN_PATCH
|
||
|
|
|
||
|
|
c->alwaysontop = !c->alwaysontop;
|
||
|
|
restack(selmon);
|
||
|
|
}
|