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) {