Fix window focus issue, only render windows from the current desktop
This commit is contained in:
parent
f691d156b6
commit
72f81c1ad7
|
|
@ -155,6 +155,12 @@ void CubeEffect::activate()
|
|||
}
|
||||
|
||||
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()
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ Item {
|
|||
Repeater {
|
||||
model: KWinComponents.WindowFilterModel {
|
||||
activity: KWinComponents.Workspace.currentActivity
|
||||
desktop: KWinComponents.Workspace.currentDesktop
|
||||
screenName: desktopView.screen.name
|
||||
windowModel: KWinComponents.WindowModel {}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import org.kde.kwin.effect.cube
|
|||
Item {
|
||||
id: root
|
||||
antialiasing: true
|
||||
focus: true
|
||||
focus: false
|
||||
|
||||
required property QtObject effect
|
||||
required property QtObject targetScreen
|
||||
|
|
|
|||
Loading…
Reference in New Issue