1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

WindowServer: Don't ignore MouseMove events for pressed window buttons

Without this change, window buttons would get stuck in the "pressed"
state as long as the left mouse button was pressed, even if you moved
the mouse cursor out of the button rect.
This commit is contained in:
Andreas Kling 2021-05-09 10:34:40 +02:00
parent 41dc73adc4
commit 5007d7bb38

View file

@ -56,7 +56,7 @@ void Button::on_mouse_event(const MouseEvent& event)
break;
}
if (!interesting_button)
if (event.type() != Event::Type::MouseMove && !interesting_button)
return;
auto& wm = WindowManager::the();