mirror of
https://github.com/eRgo35/dwm.git
synced 2025-12-16 21:56:10 +01:00
initial commit
This commit is contained in:
18
patch/togglefullscreen.c
Normal file
18
patch/togglefullscreen.c
Normal file
@@ -0,0 +1,18 @@
|
||||
void
|
||||
togglefullscreen(const Arg *arg)
|
||||
{
|
||||
Client *c = selmon->sel;
|
||||
if (!c)
|
||||
return;
|
||||
|
||||
#if FAKEFULLSCREEN_CLIENT_PATCH && !FAKEFULLSCREEN_PATCH
|
||||
if (c->fakefullscreen == 1) { // fake fullscreen --> fullscreen
|
||||
c->fakefullscreen = 2;
|
||||
setfullscreen(c, 1);
|
||||
} else
|
||||
setfullscreen(c, !c->isfullscreen);
|
||||
#else
|
||||
setfullscreen(c, !c->isfullscreen);
|
||||
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user