1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

CatDog: Switch to new mouse-tracking method

This commit is contained in:
Ben Wiederhake 2021-09-07 21:56:27 +02:00 committed by Andreas Kling
parent 2f38cad987
commit f717008bde
3 changed files with 8 additions and 18 deletions

View file

@ -59,7 +59,6 @@ int main(int argc, char** argv)
context_menu->add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
window->show();
catdog_widget.track_cursor_globally();
catdog_widget.start_timer(250, Core::TimerShouldFireWhenNotVisible::Yes);
catdog_widget.start_the_timer(); // timer for "mouse sleep detection"