diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-30 20:03:52 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-30 20:03:52 +0100 |
commit | 37ab7b7a8cd3a9f3987c6d8845f9728cdd07095f (patch) | |
tree | 23fff0d31366abbe2a04c2a849ef2d6321c6dfe7 /LibC/gui.cpp | |
parent | 5c25f0c4db9584adacd8b0446fdc0d5524fe7b31 (diff) | |
download | serenity-37ab7b7a8cd3a9f3987c6d8845f9728cdd07095f.zip |
LibGUI: Implement destroying individual windows without exiting the process.
Diffstat (limited to 'LibC/gui.cpp')
-rw-r--r-- | LibC/gui.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/LibC/gui.cpp b/LibC/gui.cpp index 6b0516b252..da1fecef05 100644 --- a/LibC/gui.cpp +++ b/LibC/gui.cpp @@ -9,6 +9,12 @@ int gui_create_window(const GUI_WindowParameters* params) __RETURN_WITH_ERRNO(rc, rc, -1); } +int gui_destroy_window(int window_id) +{ + int rc = syscall(SC_gui_destroy_window, window_id); + __RETURN_WITH_ERRNO(rc, rc, -1); +} + int gui_invalidate_window(int window_id, const GUI_Rect* rect) { int rc = syscall(SC_gui_invalidate_window, window_id, rect); |