From 911ad76372394715f7eae88c96eeb6d06396f3be Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 22 Apr 2007 19:35:50 +0000 Subject: a) set the focus client before calculating its layer b) cleanup in focus.c --- openbox/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/event.c') diff --git a/openbox/event.c b/openbox/event.c index c8356be1..f276a079 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -471,8 +471,8 @@ static void event_process(const XEvent *ec, gpointer data) focus_fallback(TRUE); } else if (client && client != focus_client) { frame_adjust_focus(client->frame, TRUE); - client_calc_layer(client); focus_set_client(client); + client_calc_layer(client); } } else if (e->type == FocusOut) { gboolean nomove = FALSE; -- cgit v1.2.3