summaryrefslogtreecommitdiff
path: root/Userland/Demos/CatDog
diff options
context:
space:
mode:
authordemostanis <demostanis@protonmail.com>2022-10-09 10:58:49 +0200
committerSam Atkins <atkinssj@gmail.com>2022-10-13 12:37:54 +0100
commit1eac02c9a47d20798fa7f8114a8051018fe34b3d (patch)
tree5d62e7c89365f272951bf88533fd817b6a420258 /Userland/Demos/CatDog
parent63a18aa89e24b3ba4e598f99a6422ccefb4d6a08 (diff)
downloadserenity-1eac02c9a47d20798fa7f8114a8051018fe34b3d.zip
CatDog: Make it always on top
Diffstat (limited to 'Userland/Demos/CatDog')
-rw-r--r--Userland/Demos/CatDog/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Demos/CatDog/main.cpp b/Userland/Demos/CatDog/main.cpp
index 8575be8e04..3b1b9250d7 100644
--- a/Userland/Demos/CatDog/main.cpp
+++ b/Userland/Demos/CatDog/main.cpp
@@ -50,6 +50,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(context_menu->try_add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); })));
window->show();
+ window->set_always_on_top();
catdog_widget->start_timer(250, Core::TimerShouldFireWhenNotVisible::Yes);
catdog_widget->start_the_timer(); // timer for "mouse sleep detection"
@@ -74,6 +75,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
catdog_widget->set_roaming(false);
advice_window->move_to(window->x() - advice_window->width() / 2, window->y() - advice_window->height());
advice_window->show();
+ advice_window->set_always_on_top();
};
advice_timer->start();