mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +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
|
@ -102,7 +102,7 @@ private:
|
|||
virtual void update_menu_item(i32, i32, i32, DeprecatedString const&, bool, bool, bool, bool, bool, DeprecatedString const&, Gfx::ShareableBitmap const&) override;
|
||||
virtual void remove_menu_item(i32 menu_id, i32 identifier) override;
|
||||
virtual void flash_menubar_menu(i32, i32) override;
|
||||
virtual void create_window(i32, Gfx::IntRect const&, bool, bool, bool,
|
||||
virtual void create_window(i32, i32, Gfx::IntRect const&, bool, bool, bool,
|
||||
bool, bool, bool, bool, bool, float, Gfx::IntSize, Gfx::IntSize, Gfx::IntSize,
|
||||
Optional<Gfx::IntSize> const&, i32, i32, DeprecatedString const&, i32, Gfx::IntRect const&) override;
|
||||
virtual Messages::WindowServer::DestroyWindowResponse destroy_window(i32) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue