From 66af88b27ccfbd00e1d52f3b0e994ae8a56898f8 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 13 May 2007 23:13:15 +0000 Subject: [PATCH] only set focus_client to null if the window losing focus was the focus_client --- openbox/event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbox/event.c b/openbox/event.c index 31759113..c8b7e6dc 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -573,7 +573,8 @@ static void event_process(const XEvent *ec, gpointer data) if (client && !nomove) { frame_adjust_focus(client->frame, FALSE); - focus_set_client(NULL); + if (client == focus_client) + focus_set_client(NULL); /* focus_set_client has already been called for sure */ client_calc_layer(client); } -- 2.45.2