From ca4cfdbf38063da7d7165f5942174eb3e345ea32 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 12 Jun 2007 04:20:41 +0000 Subject: [PATCH] dont use enter events from new windows appearing to focus them, unless underMouse is on --- openbox/client.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/openbox/client.c b/openbox/client.c index 5faeacca..e5131894 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -532,7 +532,16 @@ void client_manage(Window window) /* this has to happen before we try focus the window, but we want it to happen after the client's stacking has been determined or it looks bad */ - client_show(self); + { + gulong ignore_start; + if (!config_focus_under_mouse) + ignore_start = event_start_ignore_all_enters(); + + client_show(self); + + if (!config_focus_under_mouse) + event_end_ignore_all_enters(ignore_start); + } if (activate) { gboolean stacked = client_restore_session_stacking(self); -- 2.39.2