From be691582ee12613278af24cb5a824eeb357f6324 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 29 Jul 2024 11:27:22 -0400 Subject: some work on compositor --- documentation/compositor.txt | 15 ++++++++++----- documentation/kernel-interfaces/syscalls.txt | 5 +++++ 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'documentation') diff --git a/documentation/compositor.txt b/documentation/compositor.txt index 4d8e70f..38bd482 100644 --- a/documentation/compositor.txt +++ b/documentation/compositor.txt @@ -1,11 +1,11 @@ compositors listen on the socket id "hilbert.compositor". when a window is opened by an application, that window can only be referred to -on that stream. the opaque value given in the "window opened" message refers to -that window in future messages on that stream. it is guaranteed to be distinct -for different windows on the same stream, and in no way guaranteed to be -distinct for different windows on different streams. the window is bound -just to the stream, not to the application. if the stream where a window +on that socket. the opaque value given in the "window opened" message refers to +that window in future messages on that socket. it is guaranteed to be distinct +for different windows on the same socket, and in no way guaranteed to be +distinct for different windows on different sockets. the window is bound +just to the socket, not to the application. if the socket where a window was created is gifted to a new process, the new process has complete control over the window, and the compositor does not need to be informed. @@ -37,8 +37,13 @@ messages from applications to compositor: dword: height color rectangle: the data + close window: + byte: 0x02 + window: the window + messages from compositor to application: window opened: byte: 0x00 window: the window + these come in the order the open window requests were received diff --git a/documentation/kernel-interfaces/syscalls.txt b/documentation/kernel-interfaces/syscalls.txt index 399eb19..933ad34 100644 --- a/documentation/kernel-interfaces/syscalls.txt +++ b/documentation/kernel-interfaces/syscalls.txt @@ -198,3 +198,8 @@ get environment variable value: rdi in: pointer to variable name rsi in: variable name length rdx in: pointer to buffer for variable value + +set thread name: + rax in: 24 + rdi in: pointer to thread name + rsi in: thread name length -- cgit v1.2.3