CatDog: Fix wake-sleep "loop" when cursor is over right-top of head

Because re-evaluation of the hovered window may trigger sending a
MouseMove event to a window we should only wake it if the mouse
position actually has changed.
This commit is contained in:
Tom 2021-02-21 15:41:49 -07:00 committed by Andreas Kling
parent 2677e24a99
commit 8d2d080923
Notes: sideshowbarker 2024-07-18 22:01:32 +09:00

View File

@ -137,6 +137,8 @@ public:
void mousemove_event(GUI::MouseEvent& event) override
{
if (m_temp_pos == event.position())
return;
m_temp_pos = event.position();
m_timer.start();
if (m_sleeping) {