Fix issue where certain items weren't rendering properly (e.g. menus)

Effects are still not mirrored, like hiding docks, etc...
This commit is contained in:
wheaney 2025-08-29 12:31:03 -07:00
parent 72b6b32c58
commit e5157fd517
1 changed files with 5 additions and 6 deletions

View File

@ -25,15 +25,13 @@ Item {
} }
Repeater { Repeater {
model: KWinComponents.WindowFilterModel { model: KWinComponents.WindowModel {}
activity: KWinComponents.Workspace.currentActivity
desktop: KWinComponents.Workspace.currentDesktop
windowModel: KWinComponents.WindowModel {}
}
KWinComponents.WindowThumbnail { KWinComponents.WindowThumbnail {
// Only show if window overlaps this screen (any amount) and not minimized. // Only show if window overlaps this screen (any amount) and not minimized.
readonly property bool onThisScreen: desktopView.overlapsScreen(model.window, desktopView.screen.geometry) readonly property bool onThisActivity: model.window.activities.length === 0 || model.window.activities.includes(KWinComponents.Workspace.currentActivity)
readonly property bool onThisDesktop: onThisActivity && (model.window.onAllDesktops || model.window.desktops.includes(KWinComponents.Workspace.currentDesktop))
readonly property bool onThisScreen: onThisDesktop && desktopView.overlapsScreen(model.window, desktopView.screen.geometry)
wId: model.window.internalId wId: model.window.internalId
x: model.window.x - desktopView.screen.geometry.x x: model.window.x - desktopView.screen.geometry.x
@ -42,6 +40,7 @@ Item {
visible: onThisScreen && !model.window.minimized visible: onThisScreen && !model.window.minimized
} }
} }
Image { Image {
id: cursorImg id: cursorImg
source: effect.cursorImageSource source: effect.cursorImageSource