do not do a context switch on first invocation of callback() (set old_winpath = ".drw").

This commit is contained in:
stefan schippers 2023-06-24 07:38:55 +02:00
parent 40d8b960f3
commit 31451e6be9
1 changed files with 1 additions and 1 deletions

View File

@ -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 callback(const char *winpath, int event, int mx, int my, KeySym key,
int button, int aux, int state) 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]; char str[PATH_MAX + 100];
struct stat buf; struct stat buf;
int redraw_only; int redraw_only;