summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/events.c b/src/events.c
index a2edacd..be6123b 100644
--- a/src/events.c
+++ b/src/events.c
@@ -304,10 +304,10 @@ handle_key (screen_info *s)
{
if (keysym == i->key)
{
- if (i->state == -1 || mod == i->state)
+ if (mod == i->state)
{
/* Revert focus back to the current window before
- executing the command. */
+ executing the command. */
XSetInputFocus (dpy, fwin, revert, CurrentTime);
(*i->func)(i->data);
return;
@@ -323,7 +323,7 @@ handle_key (screen_info *s)
/* No key match, notify user. */
XSetInputFocus (dpy, fwin, revert, CurrentTime);
- display_msg_in_bar (s, msg);
+ display_msg_in_bar (s, msg, 0, 0);
}
void