From db75d406ce6194dd85c142616071e55f9b831f60 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 21 Mar 2003 08:18:39 +0000 Subject: rm the focused member from the client struct, it was redundant with the focus_client variable around --- plugins/focus.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/focus.c b/plugins/focus.c index acad9056..96c38639 100644 --- a/plugins/focus.c +++ b/plugins/focus.c @@ -76,6 +76,7 @@ static void focus_fallback(gboolean switching_desks) static void events(ObEvent *e, void *foo) { + g_message("event %d", e->type); switch (e->type) { case Event_Client_Mapped: if (focus_new && client_normal(e->data.c.client)) @@ -85,7 +86,7 @@ static void events(ObEvent *e, void *foo) case Event_Client_Unmapped: if (ob_state == State_Exiting) break; - if (e->data.c.client->focused) + if (client_focused(e->data.c.client)) if (!follow_mouse || !focus_under_pointer()) focus_fallback(FALSE); break; @@ -110,8 +111,10 @@ static void events(ObEvent *e, void *foo) --skip_enter; } else*/ - if (e->data.x.client != NULL && client_normal(e->data.x.client)) + if (e->data.x.client != NULL && client_normal(e->data.x.client)) { client_focus(e->data.x.client); + g_message("enter %lx", e->data.x.client->window); + } break; default: -- cgit v1.2.3