1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 20:45:07 +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,6 +371,7 @@ void WindowFrame::on_mouse_event(const MouseEvent& event)
return;
if (m_window.type() == WindowType::Normal && title_bar_icon_rect().contains(event.position())) {
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