summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-07-29 11:27:22 -0400
committerBenji Dial <benji@benjidial.net>2024-07-29 11:27:22 -0400
commitbe691582ee12613278af24cb5a824eeb357f6324 (patch)
tree5982ca3aad5257f515c93f62735ff3d630aa3ab3 /documentation
parent3636fd21e079c47bd8d62e773e178f68fe9c2052 (diff)
downloadhilbert-os-be691582ee12613278af24cb5a824eeb357f6324.tar.gz
some work on compositor
Diffstat (limited to 'documentation')
-rw-r--r--documentation/compositor.txt15
-rw-r--r--documentation/kernel-interfaces/syscalls.txt5
2 files changed, 15 insertions, 5 deletions
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