diff --git a/kwin/src/cubeeffect.cpp b/kwin/src/cubeeffect.cpp index e16d8c4..afa6a3c 100644 --- a/kwin/src/cubeeffect.cpp +++ b/kwin/src/cubeeffect.cpp @@ -333,11 +333,6 @@ void CubeEffect::updateXrRotation() { if (!enabled) { return; } - qCCritical(KWIN_XR) << "\t\t\tBreezy" << "version:" << version - << " enabledFlag:" << enabledFlag - << " currentTimeMs:" << currentTimeMs - << " imuDateMs:" << imuDateMs; - // Check for reset state (identity quaternion) const bool imuResetState = (imuData[0] == 0.0f && imuData[1] == 0.0f && @@ -346,13 +341,11 @@ void CubeEffect::updateXrRotation() { if (imuResetState) { return; } - qCCritical(KWIN_XR) << "\t\t\tBreezy - here 5"; // Create quaternion (w, x, y, z) QQuaternion quat(imuData[3], imuData[0], imuData[1], imuData[2]); if (quat != m_xrRotation) { - qCCritical(KWIN_XR) << "\t\t\tBreezy - here 6"; m_xrRotation = quat; Q_EMIT xrRotationChanged(); } diff --git a/kwin/src/qml/Cube.qml b/kwin/src/qml/Cube.qml index 51348cc..5868b1c 100644 --- a/kwin/src/qml/Cube.qml +++ b/kwin/src/qml/Cube.qml @@ -32,7 +32,7 @@ Node { id: faceRepeater model: KWinComponents.Workspace.screens.length delegate: CubeFace { - property var screen: KWinComponents.Workspace.screens[index] + screen: KWinComponents.Workspace.screens[index] faceSize: cube.faceSize scale: Qt.vector3d(faceSize.width / 100, faceSize.height / 100, 1) eulerRotation.y: cube.angleTick * index diff --git a/kwin/src/qml/DesktopView.qml b/kwin/src/qml/DesktopView.qml index 4b05db9..88aa3a6 100644 --- a/kwin/src/qml/DesktopView.qml +++ b/kwin/src/qml/DesktopView.qml @@ -15,7 +15,6 @@ Item { Repeater { model: KWinComponents.WindowFilterModel { activity: KWinComponents.Workspace.currentActivity - screenName: desktopView.screen.name windowModel: KWinComponents.WindowModel {} } diff --git a/kwin/src/qml/main.qml b/kwin/src/qml/main.qml index adc55b2..b44c56d 100644 --- a/kwin/src/qml/main.qml +++ b/kwin/src/qml/main.qml @@ -31,7 +31,7 @@ Item { function switchToSelected() { const eulerRotation = cameraController.rotation.toEulerAngles(); - const desktop = cube.desktopAt(eulerRotation.y); + const desktop = cube.screenAt(eulerRotation.y); KWinComponents.Workspace.currentDesktop = desktop; effect.deactivate(); } @@ -135,7 +135,7 @@ Item { if (rotationAnimation.running) { return; } - rotation = Quaternion.fromEulerAngles(0, cube.desktopAzimuth(desktop), 0); + rotation = Quaternion.fromEulerAngles(0, cube.screenAzimuth(desktop), 0); } } }