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
Notes:
sideshowbarker
2024-07-18 18:28:04 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5007d7bb382
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
Reference in a new issue