From b21c78a5b79f2548aa1a4cd24a3f4717aa9051ca Mon Sep 17 00:00:00 2001 From: sabetts Date: Tue, 28 Nov 2000 19:43:46 +0000 Subject: fixed window focus problems in handle_key --- src/events.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/events.c b/src/events.c index 313a538..5c35717 100644 --- a/src/events.c +++ b/src/events.c @@ -264,6 +264,9 @@ handle_key (screen_info *s) if (keysym == i->key) if (i->state == -1 || mod == i->state) { + /* Revert focus back to the current window before + executing the command. */ + XSetInputFocus (dpy, fwin, revert, CurrentTime); (*i->func)(i->data); goto handled_key; } @@ -287,8 +290,6 @@ handle_key (screen_info *s) /* || keysym == XK_Super_R */ /* || keysym == XK_Hyper_L */ /* || keysym == XK_Hyper_R); /\* ignore modifier keypresses. *\/ */ - - XSetInputFocus (dpy, fwin, revert, CurrentTime); } void -- cgit v1.2.3