mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00
WindowServer: Add WindowType::Desktop
This new window type can be used to implement a desktop file manager for example. :^)
This commit is contained in:
parent
88908be350
commit
3d31f2e44b
4 changed files with 12 additions and 2 deletions
|
@ -446,6 +446,10 @@ OwnPtr<Messages::WindowServer::CreateWindowResponse> ClientConnection::handle(co
|
|||
window->set_title(message.title());
|
||||
if (!message.fullscreen())
|
||||
window->set_rect(message.rect());
|
||||
if (window->type() == WindowType::Desktop) {
|
||||
window->set_rect(Screen::the().rect());
|
||||
window->recalculate_rect();
|
||||
}
|
||||
window->set_show_titlebar(message.show_titlebar());
|
||||
window->set_opacity(message.opacity());
|
||||
window->set_size_increment(message.size_increment());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue