diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-27 11:40:29 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-27 11:40:29 +0100 |
commit | 74968f0ec1cf6eed36aae711a56dd46172955194 (patch) | |
tree | e00ca2ec866e71c62241c91c4588184bef2b9ca7 /Servers/WindowServer | |
parent | c7847d7c81af5adc1a0b9a25e6c381caa06e5810 (diff) | |
download | serenity-74968f0ec1cf6eed36aae711a56dd46172955194.zip |
WindowServer: Don't send paint events to occluded windows
We wouldn't be able to see what they paint anyway, and nobody should
be using paint events to drive program logic.
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r-- | Servers/WindowServer/WSClientConnection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Servers/WindowServer/WSClientConnection.cpp b/Servers/WindowServer/WSClientConnection.cpp index d91186513e..30f0b68711 100644 --- a/Servers/WindowServer/WSClientConnection.cpp +++ b/Servers/WindowServer/WSClientConnection.cpp @@ -436,7 +436,7 @@ OwnPtr<WindowServer::DestroyWindowResponse> WSClientConnection::handle(const Win void WSClientConnection::post_paint_message(WSWindow& window) { auto rect_set = window.take_pending_paint_rects(); - if (window.is_minimized()) + if (window.is_minimized() || window.is_occluded()) return; Vector<Rect> rects; |