summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 08:17:43 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 08:17:43 +0000
commitca45916f77822dcd48a4d4f459c719e5e000a4b7 (patch)
treeacdd6e34fc8218ef6a97aa1d88b3aecb604fafc2 /openbox/event.c
parent0edc14a4f92e34f5edcdb00898013206142ca71d (diff)
update engine last for focus events
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 51f93c3b..43a3b230 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -241,6 +241,7 @@ void event_process(XEvent *e)
so back it is. if problems arise again, then try filtering on the
detail instead of the mode. */
if (e->xcrossing.mode != NotifyNormal) return;
+ g_print("%s\n", e->type == EnterNotify ? "EnterNotify":"LeaveNotify");
break;
}
@@ -319,24 +320,22 @@ static void event_handle_client(Client *client, XEvent *e)
switch (e->type) {
case FocusIn:
- client->focused = TRUE;
- engine_frame_adjust_focus(client->frame);
+ if (focus_client != client)
+ focus_set_client(client);
/* focus state can affect the stacking layer */
client_calc_layer(client);
- if (focus_client != client)
- focus_set_client(client);
+ engine_frame_adjust_focus(client->frame);
break;
case FocusOut:
- client->focused = FALSE;
- engine_frame_adjust_focus(client->frame);
+ if (focus_client == client)
+ focus_set_client(NULL);
/* focus state can affect the stacking layer */
client_calc_layer(client);
- if (focus_client == client)
- focus_set_client(NULL);
+ engine_frame_adjust_focus(client->frame);
break;
case ConfigureRequest:
g_message("ConfigureRequest for window %lx", client->window);