From d7c87e84f39da880a48ba2e79ab31316adf4436c Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 15 Jul 2020 10:48:58 -0600 Subject: [PATCH] WindowServer: Don't make window active by hovering over the icon --- Services/WindowServer/WindowFrame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Services/WindowServer/WindowFrame.cpp b/Services/WindowServer/WindowFrame.cpp index cce040fd87..ce3e4d1b66 100644 --- a/Services/WindowServer/WindowFrame.cpp +++ b/Services/WindowServer/WindowFrame.cpp @@ -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