Created
August 21, 2022 09:07
-
-
Save NekoCWD/7014defd416bba670970b21fa9b4ffe5 to your computer and use it in GitHub Desktop.
dwm 6.3 togglefullscreen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- dwm.c.back 2022-01-07 14:42:18.000000000 +0300 | |
+++ dwm.c 2022-08-21 12:03:37.904950261 +0300 | |
@@ -214,6 +214,7 @@ | |
static void togglefloating(const Arg *arg); | |
static void toggletag(const Arg *arg); | |
static void toggleview(const Arg *arg); | |
+static void togglefullscreen(const Arg *arg); | |
static void unfocus(Client *c, int setfocus); | |
static void unmanage(Client *c, int destroyed); | |
static void unmapnotify(XEvent *e); | |
@@ -1726,6 +1727,13 @@ | |
} | |
void | |
+togglefullscreen(const Arg *arg) { | |
+ if (!selmon->sel) | |
+ return; | |
+ setfullscreen(selmon->sel, !selmon->sel->isfullscreen); | |
+} | |
+ | |
+void | |
toggletag(const Arg *arg) | |
{ | |
unsigned int newtags; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment