diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-08-17 11:14:27 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-08-17 11:14:27 +0400 |
commit | 8adce9ac336b54542530277c3b7768637c41b05d (patch) | |
tree | 7c7136a5d5cc930870e0e6ff576b2bfbc8540b18 | |
parent | 82f91a7b2e516363722f5fa93ae51afc8cbe8e32 (diff) |
actualfullscreen patched
-rw-r--r-- | config.h | 1 | ||||
-rw-r--r-- | dwm.c | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -93,6 +93,7 @@ static const Key keys[] = { { MODKEY, XK_space, zoom, {0} }, { MODKEY|ShiftMask, XK_o, killclient, {0} }, { MODKEY|ShiftMask, XK_f, togglefloating, {0} }, + { MODKEY, XK_f, togglefullscr, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, @@ -210,6 +210,7 @@ static void tagmon(const Arg *arg); static void tile(Monitor *m); static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); +static void togglefullscr(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unfocus(Client *c, int setfocus); @@ -1711,6 +1712,13 @@ togglefloating(const Arg *arg) } void +togglefullscr(const Arg *arg) +{ + if(selmon->sel) + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +} + +void toggletag(const Arg *arg) { unsigned int newtags; |