diff options
author | Guido Cella <guido@guidocella.xyz> | 2020-12-19 18:23:23 +0100 |
---|---|---|
committer | Guido Cella <guido@guidocella.xyz> | 2020-12-19 18:23:23 +0100 |
commit | c89de53de3e0867157730026a333e16430e71e5a (patch) | |
tree | 9577cd29cf169858c23d7517ab8330f89a728b99 | |
parent | 14ce0162136cd01064ae3bc650d9ffee36291de0 (diff) |
remove togglefullscreen keybinding
Distribute it as a patch like in dwm since graphical applications
usually provide their own keybinding; I guess it's only for terminals.
Note that even though these commits don't let you open multiple windows
in fullscreen and cycle between them like in dwm, with just
fullscreennotify spawning new windows or changing tag would still exit
fullscreen automatically, but you would have to toggle fullscreen twice
when switching back to the fullscreen window to enter fullscreen again,
so this is better since it avoids that.
-rw-r--r-- | config.def.h | 1 | ||||
-rw-r--r-- | dwl.c | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/config.def.h b/config.def.h index d821a96..53021cf 100644 --- a/config.def.h +++ b/config.def.h @@ -75,7 +75,6 @@ static const Key keys[] = { { MODKEY, XKB_KEY_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XKB_KEY_space, setlayout, {0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_space, togglefloating, {0} }, - { MODKEY, XKB_KEY_e, togglefullscreen, {0} }, { MODKEY, XKB_KEY_0, view, {.ui = ~0} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_parenright, tag, {.ui = ~0} }, { MODKEY, XKB_KEY_comma, focusmon, {.i = -1} }, @@ -278,7 +278,6 @@ static void tag(const Arg *arg); static void tagmon(const Arg *arg); static void tile(Monitor *m); static void togglefloating(const Arg *arg); -static void togglefullscreen(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unmaplayersurface(LayerSurface *layersurface); @@ -1054,13 +1053,6 @@ destroyxdeco(struct wl_listener *listener, void *data) } void -togglefullscreen(const Arg *arg) -{ - Client *sel = selclient(); - setfullscreen(sel, !sel->isfullscreen); -} - -void setfullscreen(Client *c, int fullscreen) { c->isfullscreen = fullscreen; |