mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
WindowServer+LibGUI+LibGfx: Add WindowType::ToolWindow
Tool windows are secondary windows with a smaller title bar. The sit on the layer above normal windows, and cannot be minimized. These are intended for complex yet non-modal interactions with the content of a primary window, such as find/replace windows, property windows, etc.
This commit is contained in:
parent
15c1f7a40d
commit
11c8596ad3
Notes:
sideshowbarker
2024-07-18 22:13:07 +09:00
Author: https://github.com/awesomekling
Commit: 11c8596ad3
12 changed files with 105 additions and 37 deletions
|
@ -492,7 +492,7 @@ OwnPtr<Messages::WindowServer::CreateWindowResponse> ClientConnection::handle(co
|
|||
window->set_title(message.title());
|
||||
if (!message.fullscreen()) {
|
||||
auto rect = message.rect();
|
||||
if (message.auto_position() && window->type() == WindowType::Normal) {
|
||||
if (message.auto_position() && window->is_movable()) {
|
||||
rect = { WindowManager::the().get_recommended_window_position({ 100, 100 }), message.rect().size() };
|
||||
window->set_default_positioned(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue