move the mouse eater inside the dialog
commiteba2a6040c00b99d1254584bdc7244ac4fe02f6a
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateWed 4 Jan 2017, 12:57 (10 years ago)
parent85f1bc9
qml/Components/Dialogs.qml+4−1
@@ -24,8 +24,11 @@ import Unity.Platform 1.0
2424import Utils 0.1
2525import "../Greeter"
2626
27−Item {
27+MouseArea {
2828 id: root
29+ acceptedButtons: Qt.AllButtons
30+ hoverEnabled: true
31+ onWheel: wheel.accepted = true
2932
3033 readonly property alias hasActiveDialog: dialogLoader.active
3134
qml/Shell.qml−9
@@ -658,15 +658,6 @@ StyledItem {
658658 }
659659 }
660660
661− MouseArea { // shell dialog prevents interacting with other contents
662− anchors.fill: parent
663− visible: dialogs.hasActiveDialog
664− enabled: visible
665− acceptedButtons: Qt.AllButtons
666− hoverEnabled: true
667− onWheel: wheel.accepted = true
668− }
669−
670661 Connections {
671662 target: SessionBroadcast
672663 onShowHome: if (shell.mode !== "greeter") showHome()