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
Notes: sideshowbarker 2024-07-18 18:28:04 +09:00

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();