From 3726cafb288d23f0efe1b833ef6870d4b99becbb Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 2 Oct 2015 14:44:46 +0200 Subject: [PATCH] window layouter: no focus update on hover reset --- repos/gems/src/app/floating_window_layouter/main.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/repos/gems/src/app/floating_window_layouter/main.cc b/repos/gems/src/app/floating_window_layouter/main.cc index 5ca3c9d07f..7706fe4758 100644 --- a/repos/gems/src/app/floating_window_layouter/main.cc +++ b/repos/gems/src/app/floating_window_layouter/main.cc @@ -774,7 +774,15 @@ void Floating_window_layouter::Main::handle_hover_update(unsigned) hovered_element = Window::Element::UNDEFINED; hovered_window_id = 0; generate_window_layout_model(); - generate_focus_model(); + + /* + * Don't generate a focus-model update here. In a situation where + * the pointer has moved over a native nitpicker view (outside + * the realm of the window manager), the hover model as generated + * by the decorator naturally becomes empty. If we posted a + * focus update, this would steal the focus away from the native + * nitpicker view. + */ } } }