From c89de53de3e0867157730026a333e16430e71e5a Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 19 Dec 2020 18:23:23 +0100 Subject: 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. --- dwl.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 4c03717..6d51236 100644 --- a/dwl.c +++ b/dwl.c @@ -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); @@ -1053,13 +1052,6 @@ destroyxdeco(struct wl_listener *listener, void *data) free(d); } -void -togglefullscreen(const Arg *arg) -{ - Client *sel = selclient(); - setfullscreen(sel, !sel->isfullscreen); -} - void setfullscreen(Client *c, int fullscreen) { -- cgit v1.2.3