summaryrefslogtreecommitdiff
path: root/Servers/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-27 11:40:29 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-27 11:40:29 +0100
commit74968f0ec1cf6eed36aae711a56dd46172955194 (patch)
treee00ca2ec866e71c62241c91c4588184bef2b9ca7 /Servers/WindowServer
parentc7847d7c81af5adc1a0b9a25e6c381caa06e5810 (diff)
downloadserenity-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.cpp2
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;