summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-12 05:44:16 +0000
committerDana Jansens <danakj@orodu.net>2007-03-12 05:44:16 +0000
commit3a33642be4be34d57b355b273461e49549cdf554 (patch)
tree5939286ed526e7c32f01a4ea257675d8d0e3705b /openbox/event.c
parentc018e212200dfece62b49c6ed385d379eb4e45e9 (diff)
update focus_hilite appropriately for when changing desktops
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index cfc823b2..5d19e897 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -452,6 +452,7 @@ static void event_process(const XEvent *ec, gpointer data)
ob_debug("UNKNOWN FOCUS %s (d %d, m %d) window 0x%x\n",
(e->type == FocusIn ? "IN" : "OUT"),
detail, mode, window);
+ }
#endif
event_set_lasttime(e);
@@ -523,10 +524,11 @@ static void event_process(const XEvent *ec, gpointer data)
if (e->type == ButtonPress || e->type == ButtonRelease ||
e->type == MotionNotify)
mouse_event(client, e);
- else if (e->type == KeyPress)
+ else if (e->type == KeyPress) {
keyboard_event((focus_cycle_target ? focus_cycle_target :
(focus_hilite ? focus_hilite : client)),
e);
+ }
}
}
}
@@ -678,6 +680,7 @@ static void event_handle_client(ObClient *client, XEvent *e)
}
/* This client is no longer focused, so show that */
+ focus_hilite = NULL;
frame_adjust_focus(client->frame, FALSE);
client_calc_layer(client);
break;