mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 14:48:17 +00:00
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:
parent
c7847d7c81
commit
74968f0ec1
Notes:
sideshowbarker
2024-07-19 10:37:01 +09:00
Author: https://github.com/awesomekling
Commit: 74968f0ec1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue