From 74ae411b698b275e088ff509658182d8d52afeeb Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 15 Nov 2024 20:42:07 +0200 Subject: [PATCH] WindowServer: Skip invalidation on other windows in fullscreen mode --- userspace/programs/WindowServer/WindowServer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/userspace/programs/WindowServer/WindowServer.cpp b/userspace/programs/WindowServer/WindowServer.cpp index c880d883..45e5f8fa 100644 --- a/userspace/programs/WindowServer/WindowServer.cpp +++ b/userspace/programs/WindowServer/WindowServer.cpp @@ -96,6 +96,13 @@ void WindowServer::on_window_invalidate(int fd, const LibGUI::WindowPacket::Wind if (packet.width == 0 || packet.height == 0) return; + if (m_is_fullscreen_window) + { + ASSERT(m_focused_window); + if (m_focused_window->client_fd() != fd) + return; + } + BAN::RefPtr target_window; for (auto& window : m_client_windows) {