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:
parent
41dc73adc4
commit
5007d7bb38
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue