diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-01 23:53:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-02 01:29:55 +0200 |
commit | 745b0b27fd01c124e93aaf591c2c4c5610dd0d82 (patch) | |
tree | 2af110cef36988555454b38d4b2de92bdba37825 /Libraries/LibGUI/Window.h | |
parent | a726fda5461a8ff9ef49e378a6170c1eeddbe02a (diff) | |
download | serenity-745b0b27fd01c124e93aaf591c2c4c5610dd0d82.zip |
WindowServer+LibGUI: Automatically close child windows with parent
If a window has child windows when it's destroyed, WindowServer will
now automatically tear down all of its children as well.
This is communicated to the client program through a vector of window
ID's included with the response to WindowServer::DestroyWindow.
This does feel a little bit awkward, but managing it on the client side
also seems a bit awkward.
Diffstat (limited to 'Libraries/LibGUI/Window.h')
-rw-r--r-- | Libraries/LibGUI/Window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Window.h b/Libraries/LibGUI/Window.h index 9bb118c26a..01221a86ed 100644 --- a/Libraries/LibGUI/Window.h +++ b/Libraries/LibGUI/Window.h @@ -191,6 +191,8 @@ protected: private: virtual bool is_window() const override final { return true; } + void server_did_destroy(); + RefPtr<Gfx::Bitmap> create_backing_bitmap(const Gfx::Size&); RefPtr<Gfx::Bitmap> create_shared_bitmap(Gfx::BitmapFormat, const Gfx::Size&); void set_current_backing_bitmap(Gfx::Bitmap&, bool flush_immediately = false); |