diff options
Diffstat (limited to 'dwm/patch/alwaysontop.c')
| -rwxr-xr-x | dwm/patch/alwaysontop.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dwm/patch/alwaysontop.c b/dwm/patch/alwaysontop.c new file mode 100755 index 0000000..38801f0 --- /dev/null +++ b/dwm/patch/alwaysontop.c @@ -0,0 +1,20 @@ +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); +} |
