mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 23:12:56 +00:00
LibGUI+WindowServer: Add Window::set_always_on_top()
This commit is contained in:
parent
50e74de279
commit
63a18aa89e
Notes:
sideshowbarker
2024-07-17 05:59:20 +09:00
Author: https://github.com/demostanis
Commit: 63a18aa89e
Pull-request: https://github.com/SerenityOS/serenity/pull/15522
5 changed files with 21 additions and 0 deletions
|
@ -1341,6 +1341,15 @@ void ConnectionFromClient::remove_window_stealing(i32 window_id)
|
|||
window->remove_all_stealing();
|
||||
}
|
||||
|
||||
void ConnectionFromClient::set_always_on_top(i32 window_id, bool always_on_top)
|
||||
{
|
||||
auto window = window_from_id(window_id);
|
||||
if (!window)
|
||||
did_misbehave("SetAlwaysOnTop: Bad window ID");
|
||||
|
||||
window->set_always_on_top(always_on_top);
|
||||
}
|
||||
|
||||
void ConnectionFromClient::notify_about_theme_change()
|
||||
{
|
||||
// Recalculate minimum size for each window, using the new theme metrics.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue