mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:17:35 +00:00
WindowServer+LibGUI: Make window creation asynchronous :^)
Let clients manage their own window ID's. If you try to create a new window with an existing ID, WindowServer will simply disconnect you for misbehaving. This removes the need for window creation to be synchronous, which means that most GUI applications can now batch their entire GUI initialization sequence without having to block waiting for responses.
This commit is contained in:
parent
77c2db4183
commit
0a98964600
4 changed files with 17 additions and 10 deletions
|
@ -26,6 +26,7 @@ endpoint WindowServer
|
|||
update_menu_item(i32 menu_id, i32 identifier, i32 submenu_id, [UTF8] String text, bool enabled, bool checkable, bool checked, bool is_default, [UTF8] String shortcut) =|
|
||||
|
||||
create_window(
|
||||
i32 window_id,
|
||||
Gfx::IntRect rect,
|
||||
bool auto_position,
|
||||
bool has_alpha_channel,
|
||||
|
@ -43,7 +44,7 @@ endpoint WindowServer
|
|||
Optional<Gfx::IntSize> resize_aspect_ratio,
|
||||
i32 type,
|
||||
[UTF8] String title,
|
||||
i32 parent_window_id) => (i32 window_id)
|
||||
i32 parent_window_id) =|
|
||||
|
||||
destroy_window(i32 window_id) => (Vector<i32> destroyed_window_ids)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue