diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-24 23:40:12 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-24 23:44:19 +0100 |
commit | 86eae0f8df91d6523d5e7ea3908cbe55dee668c5 (patch) | |
tree | f16633c44dd79361b6350babd2b6f403b6bbee64 /Userland/guitest.cpp | |
parent | ccf3fc46188ff52e22fa61f3a787c796141ee552 (diff) | |
download | serenity-86eae0f8df91d6523d5e7ea3908cbe55dee668c5.zip |
Let userland retain the window backing store while drawing into it.
To start painting, call:
gui$get_window_backing_store()
Then finish up with:
gui$release_window_backing_store()
Process will retain the underlying GraphicsBitmap behind the scenes.
This fixes racing between the WindowServer and GUI clients.
This patch also adds a WSWindowLocker that is exactly what it sounds like.
Diffstat (limited to 'Userland/guitest.cpp')
-rw-r--r-- | Userland/guitest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/guitest.cpp b/Userland/guitest.cpp index 8f48a5cc75..b6a0401f42 100644 --- a/Userland/guitest.cpp +++ b/Userland/guitest.cpp @@ -30,6 +30,7 @@ int main(int argc, char** argv) return 1; } + // NOTE: We never release the backing store. This is just a simple app. :^) GUI_WindowBackingStoreInfo backing; int rc = gui_get_window_backing_store(window_id, &backing); if (rc < 0) { |