summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-11-28 19:43:46 +0000
committersabetts <sabetts>2000-11-28 19:43:46 +0000
commitb21c78a5b79f2548aa1a4cd24a3f4717aa9051ca (patch)
treef1f756ab0bf07ae4968936cb6235cf11e2f5e46c
parentcef9a8fb191ebe2cace73b00c016aadc6b84cf78 (diff)
downloadratpoison-b21c78a5b79f2548aa1a4cd24a3f4717aa9051ca.zip
fixed window focus problems in handle_key
-rw-r--r--src/events.c5
1 files 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