Skip to content

Commit

Permalink
Possible fix for showing wrong screen background on multi-screen setup
Browse files Browse the repository at this point in the history
  • Loading branch information
emvaized authored Sep 22, 2022
1 parent 98d38b3 commit 3cccde9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions contents/ui/components/DesktopBackground.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
4 changes: 2 additions & 2 deletions contents/ui/config.ui
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@
<item>
<widget class="QCheckBox" name="kcfg_showDesktopBackground">
<property name="cursor">
<cursorShape>WhatsThisCursor</cursorShape>
<cursorShape>ArrowCursor</cursorShape>
</property>
<property name="toolTip">
<string>May show the wrong screen on multi-monitor setup</string>
<string/>
</property>
<property name="text">
<string>Show desktop background</string>
Expand Down

0 comments on commit 3cccde9

Please sign in to comment.