window layouter: no focus update on hover reset

This commit is contained in:
Norman Feske 2015-10-02 14:44:46 +02:00 committed by Christian Helmuth
parent f8c1379f15
commit 3726cafb28
1 changed files with 9 additions and 1 deletions

View File

@ -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.
*/
}
}
}