mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 20:35:07 +00:00
WindowServer: Don't make window active by hovering over the icon
This commit is contained in:
parent
8286e72187
commit
d7c87e84f3
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue