From 31451e6be91aab3195d95eb8a2e2faae85f6746c Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Sat, 24 Jun 2023 07:38:55 +0200 Subject: [PATCH] do not do a context switch on first invocation of callback() (set old_winpath = ".drw"). --- src/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callback.c b/src/callback.c index 3c7517de..90d0b58d 100644 --- a/src/callback.c +++ b/src/callback.c @@ -980,7 +980,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int int callback(const char *winpath, int event, int mx, int my, KeySym key, int button, int aux, int state) { - static char old_winpath[PATH_MAX] = ""; /* previous focused window, used to do context switch */ + static char old_winpath[PATH_MAX] = ".drw"; /* previous focused window, used to do context switch */ char str[PATH_MAX + 100]; struct stat buf; int redraw_only;