WindowServer: Skip invalidation on other windows in fullscreen mode

This commit is contained in:
Bananymous 2024-11-15 20:42:07 +02:00
parent d458592fb1
commit 74ae411b69
1 changed files with 7 additions and 0 deletions

View File

@ -96,6 +96,13 @@ void WindowServer::on_window_invalidate(int fd, const LibGUI::WindowPacket::Wind
if (packet.width == 0 || packet.height == 0) if (packet.width == 0 || packet.height == 0)
return; return;
if (m_is_fullscreen_window)
{
ASSERT(m_focused_window);
if (m_focused_window->client_fd() != fd)
return;
}
BAN::RefPtr<Window> target_window; BAN::RefPtr<Window> target_window;
for (auto& window : m_client_windows) for (auto& window : m_client_windows)
{ {