Fix window focus issue, only render windows from the current desktop

This commit is contained in:
wheaney 2025-07-03 13:29:42 -07:00
parent f691d156b6
commit 72f81c1ad7
3 changed files with 8 additions and 1 deletions

View File

@ -155,6 +155,12 @@ void CubeEffect::activate()
} }
setRunning(true); setRunning(true);
// QuickSceneEffect grabs the keyboard and mouse input, which pulls focus away from the active window
// and doesn't allow for interaction with anything on the desktop. These two calls fix that.
// TODO - move away from QuickSceneEffect
effects->ungrabKeyboard();
effects->stopMouseInterception(this);
} }
void CubeEffect::deactivate() void CubeEffect::deactivate()

View File

@ -15,6 +15,7 @@ Item {
Repeater { Repeater {
model: KWinComponents.WindowFilterModel { model: KWinComponents.WindowFilterModel {
activity: KWinComponents.Workspace.currentActivity activity: KWinComponents.Workspace.currentActivity
desktop: KWinComponents.Workspace.currentDesktop
screenName: desktopView.screen.name screenName: desktopView.screen.name
windowModel: KWinComponents.WindowModel {} windowModel: KWinComponents.WindowModel {}
} }

View File

@ -12,7 +12,7 @@ import org.kde.kwin.effect.cube
Item { Item {
id: root id: root
antialiasing: true antialiasing: true
focus: true focus: false
required property QtObject effect required property QtObject effect
required property QtObject targetScreen required property QtObject targetScreen