use the shell's rotation angle
commit8254fd4b7376cb5f9efbe6fa6c884acbf8f9691e
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateMon 12 Oct 2015, 13:36 (11 years ago)
parentc9777f7
qml/Components/ScreenGrabber.qml+4−1
@@ -27,6 +27,9 @@ Rectangle {
2727 anchors.fill: parent
2828 opacity: 0.0
2929
30+ // to be set from outside
31+ property int rotationAngle: 0
32+
3033 ScreenGrabber {
3134 id: screenGrabber
3235 objectName: "screenGrabber"
@@ -68,7 +71,7 @@ Rectangle {
6871 to: 0.0
6972 onStopped: {
7073 if (visible) {
71− screenGrabber.captureAndSave(Screen.angleBetween(Screen.orientation, Screen.primaryOrientation));
74+ screenGrabber.captureAndSave(root.rotationAngle);
7275 visible = false;
7376 }
7477 }
qml/Shell.qml+1
@@ -192,6 +192,7 @@ Item {
192192
193193 ScreenGrabber {
194194 id: screenGrabber
195+ rotationAngle: -shell.orientationAngle
195196 z: dialogs.z + 10
196197 }
197198