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.
This commit is contained in:
Andreas Kling 2019-12-27 11:40:29 +01:00
commit 74968f0ec1
Notes: sideshowbarker 2024-07-19 10:37:01 +09:00

View file

@ -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;