From 55acc7bf06ff6c972f33acb6a8a24075d9e178c3 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Thu, 27 Sep 2018 13:58:04 +0200 Subject: Compositor: Remove WaylandCursorItem.scaleCorrection It's an implementation detail, so shouldn't be exposed as a property. Change-Id: Ib0a5b7dd92403cf45e1067710d1aad330a7a340f Reviewed-by: Paul Olav Tvete --- src/imports/compositor/WaylandCursorItem.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/imports/compositor/WaylandCursorItem.qml b/src/imports/compositor/WaylandCursorItem.qml index 331784109..1fa099676 100644 --- a/src/imports/compositor/WaylandCursorItem.qml +++ b/src/imports/compositor/WaylandCursorItem.qml @@ -46,16 +46,15 @@ WaylandQuickItem { property QtObject seat property int hotspotX: 0 property int hotspotY: 0 - // If we've set an output scale factor different from the device pixel ratio - // then the item will be rendered scaled, so we need to shift the hotspot accordingly - property real scaleCorrection: output ? output.scaleFactor / Screen.devicePixelRatio : 1 visible: cursorItem.surface != null inputEventsEnabled: false enabled: false transform: Translate { - x: -hotspotX * scaleCorrection - y: -hotspotY * scaleCorrection + // If we've set an output scale factor different from the device pixel ratio + // then the item will be rendered scaled, so we need to shift the hotspot accordingly + x: -hotspotX * (output ? output.scaleFactor / Screen.devicePixelRatio : 1) + y: -hotspotY * (output ? output.scaleFactor / Screen.devicePixelRatio : 1) } Connections { -- cgit v1.2.3