mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:47:46 +00:00
LibGUI+WindowServer: Store the source process' PID in the Window classes
The "Window" classes in LibGUI and WindowServer now store the PID of the process that created the window. LibGUI's Window obtains the PID in the constructor via getpid(), and passes it in Window::show() to WindowServer via the create_window() IPC route. WindowServer then saves it in its own Window class. This allows us to find the process that created a window in order to add process-specific actions to the window.
This commit is contained in:
parent
124611b256
commit
4386182be1
7 changed files with 13 additions and 5 deletions
|
@ -44,6 +44,7 @@ endpoint WindowServer
|
|||
|
||||
create_window(
|
||||
i32 window_id,
|
||||
i32 process_id,
|
||||
Gfx::IntRect rect,
|
||||
bool auto_position,
|
||||
bool has_alpha_channel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue