mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
CatDog: Make it always on top
This commit is contained in:
parent
63a18aa89e
commit
1eac02c9a4
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/demostanis Commit: https://github.com/SerenityOS/serenity/commit/1eac02c9a4 Pull-request: https://github.com/SerenityOS/serenity/pull/15522
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue