From 3cccde940516213421385c68167843074f6c6952 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 23 Sep 2022 01:12:47 +0300 Subject: [PATCH] Possible fix for showing wrong screen background on multi-screen setup --- contents/ui/components/DesktopBackground.qml | 15 +++++++++------ contents/ui/config.ui | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/contents/ui/components/DesktopBackground.qml b/contents/ui/components/DesktopBackground.qml index ce1e942..1f8e7e1 100644 --- a/contents/ui/components/DesktopBackground.qml +++ b/contents/ui/components/DesktopBackground.qml @@ -3,23 +3,26 @@ import QtQuick.Window 2.12 import QtGraphicalEffects 1.12 import org.kde.kwin 2.0 as KWinComponents -KWinComponents.ThumbnailItem { - wId: desktopWindowId - id: desktopBackground +Item { y: - (mainWindow.y - minDy) x: - (mainWindow.x - minDx) height: Screen.height width: currentScreenWidth - opacity: 1 visible: showDesktopBackground && mainWindow.activated - /// configurable blur + KWinComponents.ThumbnailItem { + wId: desktopWindowId + id: desktopBackground + anchors.fill: parent + } + + /// configurable blur FastBlur { id: blurBackground anchors.fill: parent source: desktopBackground radius: desktopBackgroundBlur visible: true - cached: true + cached: false } } diff --git a/contents/ui/config.ui b/contents/ui/config.ui index 1182327..a962ce5 100644 --- a/contents/ui/config.ui +++ b/contents/ui/config.ui @@ -301,10 +301,10 @@ - WhatsThisCursor + ArrowCursor - May show the wrong screen on multi-monitor setup + Show desktop background