summaryrefslogtreecommitdiff
path: root/Userland/Services/WindowServer/WindowServer.ipc
diff options
context:
space:
mode:
authorTimothy <timmot@users.noreply.github.com>2021-07-17 10:41:36 +1000
committerAndreas Kling <kling@serenityos.org>2021-07-18 17:21:28 +0200
commit9e04ab936ff7881485848d99a2a6483bff2f3e4a (patch)
treea67031b6231ac24a7c4f17dbf9d35c2a38c47ea7 /Userland/Services/WindowServer/WindowServer.ipc
parentf5e0475bdf3ce85be6854713edef4b9b2b167e90 (diff)
downloadserenity-9e04ab936ff7881485848d99a2a6483bff2f3e4a.zip
WindowServer: Let clients mark windows as stealable by specific clients
This implements window stealing in WindowServer, which allows clients to mark a window they own as 'stealable' by another client. Indicating that the other client may use it for any purpose. This also updates set_window_parent_from_id so that the client must first mark its window as stealable before allowing other clients to use it as a parent.
Diffstat (limited to 'Userland/Services/WindowServer/WindowServer.ipc')
-rw-r--r--Userland/Services/WindowServer/WindowServer.ipc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/WindowServer.ipc b/Userland/Services/WindowServer/WindowServer.ipc
index 7a24f47d2a..38bf959770 100644
--- a/Userland/Services/WindowServer/WindowServer.ipc
+++ b/Userland/Services/WindowServer/WindowServer.ipc
@@ -150,4 +150,7 @@ endpoint WindowServer
set_window_parent_from_client(i32 client_id, i32 parent_id, i32 child_id) =|
get_window_rect_from_client(i32 client_id, i32 window_id) => (Gfx::IntRect rect)
+ add_window_stealing_for_client(i32 client_id, i32 window_id) =|
+ remove_window_stealing_for_client(i32 client_id, i32 window_id) =|
+ remove_window_stealing(i32 window_id) =|
}