1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 21:25:08 +00:00

WindowServer: Don't make window active by hovering over the icon

This commit is contained in:
Tom 2020-07-15 10:48:58 -06:00 committed by Andreas Kling
parent 8286e72187
commit d7c87e84f3

View file

@ -371,7 +371,8 @@ void WindowFrame::on_mouse_event(const MouseEvent& event)
return;
if (m_window.type() == WindowType::Normal && title_bar_icon_rect().contains(event.position())) {
wm.move_to_front_and_make_active(m_window);
if (event.type() == Event::MouseDown)
wm.move_to_front_and_make_active(m_window);
if (event.type() == Event::MouseDown && (event.button() == MouseButton::Left || event.button() == MouseButton::Right)) {
// Manually start a potential double click. Since we're opening
// a menu, we will only receive the MouseDown event, so we