From 36f6f2fb2d82c9c57e5ccf8566b993596c3d28c1 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 27 Feb 2024 16:13:14 +0100 Subject: [PATCH] compositor: only set content type if window is on the current output --- src/compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.cpp b/src/compositor.cpp index 16c25b8dec..d822a75b41 100644 --- a/src/compositor.cpp +++ b/src/compositor.cpp @@ -162,7 +162,7 @@ void Compositor::composite(RenderLoop *renderLoop) prePaintPass(superLayer, &surfaceDamage); Window *const activeWindow = workspace()->activeWindow(); - SurfaceItem *const activeFullscreenItem = activeWindow && activeWindow->isFullScreen() ? activeWindow->surfaceItem() : nullptr; + SurfaceItem *const activeFullscreenItem = activeWindow && activeWindow->isFullScreen() && activeWindow->isOnOutput(output) ? activeWindow->surfaceItem() : nullptr; frame->setContentType(activeWindow && activeFullscreenItem ? activeFullscreenItem->contentType() : ContentType::None); const bool wantsAdaptiveSync = activeWindow && activeWindow->isOnOutput(output) && activeWindow->wantsAdaptiveSync();