mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
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:
parent
2677e24a99
commit
8d2d080923
Notes:
sideshowbarker
2024-07-18 22:01:32 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/8d2d0809235 Pull-request: https://github.com/SerenityOS/serenity/pull/5467
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user