WindowServer: Skip invalidation on other windows in fullscreen mode
This commit is contained in:
parent
d458592fb1
commit
74ae411b69
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue