Allow dragging main window from toolbar

This commit is contained in:
Alex Spataru 2021-12-04 21:26:07 -06:00
parent 76d445cd56
commit 123c2606b7

View File

@ -180,8 +180,20 @@ Control {
onEnabledChanged: Cpp_Misc_MacExtras.setDashboardEnabled(enabled)
}
//
// Window drag handler
//
Item {
height: parent.height
Layout.fillWidth: true
DragHandler {
grabPermissions: TapHandler.CanTakeOverFromAnything
onActiveChanged: {
if (active)
window.startSystemMove()
}
}
}
Button {