diff --git a/src/mainview/components/AudioCallPage.qml b/src/mainview/components/AudioCallPage.qml index f87a6bf3c2fc9024add3de4c060faec8617d615c..645b4e611b7d15d79eb1fef3b8d8765f8dc34e03 100644 --- a/src/mainview/components/AudioCallPage.qml +++ b/src/mainview/components/AudioCallPage.qml @@ -91,9 +91,17 @@ Rectangle { hoverEnabled: true propagateComposedEvents: true - acceptedButtons: Qt.LeftButton + acceptedButtons: Qt.LeftButton | Qt.RightButton - onDoubleClicked: callStackView.toggleFullScreen() + onDoubleClicked: { + if (mouse.button === Qt.LeftButton) + callStackView.toggleFullScreen() + } + + onClicked: { + if (mouse.button === Qt.RightButton) + audioCallOverlay.openCallViewContextMenuInPos(mouse.x, mouse.y) + } CallOverlay { id: audioCallOverlay @@ -239,15 +247,5 @@ Rectangle { } } - MouseArea { - anchors.fill: parent - - acceptedButtons: Qt.RightButton - - onClicked: { - audioCallOverlay.openCallViewContextMenuInPos(mouse.x, mouse.y) - } - } - color: "black" } diff --git a/src/mainview/components/VideoCallPage.qml b/src/mainview/components/VideoCallPage.qml index 628def4981671d0ee90ba5fba6943a8dc868774a..0ae2eec414f0979eb9d69887d1b9157813d98d79 100644 --- a/src/mainview/components/VideoCallPage.qml +++ b/src/mainview/components/VideoCallPage.qml @@ -151,12 +151,21 @@ Rectangle { MouseArea { anchors.fill: parent + hoverEnabled: true propagateComposedEvents: true - acceptedButtons: Qt.LeftButton + acceptedButtons: Qt.LeftButton | Qt.RightButton - onDoubleClicked: callStackView.toggleFullScreen() + onDoubleClicked: { + if (mouse.button === Qt.LeftButton) + callStackView.toggleFullScreen() + } + + onClicked: { + if (mouse.button === Qt.RightButton) + videoCallOverlay.openCallViewContextMenuInPos(mouse.x, mouse.y) + } CallOverlay { id: videoCallOverlay @@ -325,16 +334,6 @@ Rectangle { } } - MouseArea { - anchors.fill: parent - - acceptedButtons: Qt.RightButton - - onClicked: { - videoCallOverlay.openCallViewContextMenuInPos(mouse.x, mouse.y) - } - } - onBestNameChanged: { ContactAdapter.setCalleeDisplayName(bestName) }