fix windows dragging in desktop grid

Don't disable the main drag handler when canclosewindows is disabled,
that one is not used to close windows but to drag them on other desktops or screens

BUG: 455268
This commit is contained in:
Marco Martin 2022-06-15 11:13:04 +02:00 committed by Vlad Zahorodnii
parent c7ba0a2567
commit e04542995e

View file

@ -396,8 +396,8 @@ FocusScope {
component DragManager : DragHandler {
id: dragHandler
enabled: heap.supportsCloseWindows
target: null
grabPermissions: PointerHandler.CanTakeOverFromHandlersOfSameType
readonly property double targetScale: {
if (!heap.supportsDragUpGesture) {
@ -432,6 +432,7 @@ FocusScope {
DragManager {
id: touchDragHandler
acceptedDevices: PointerDevice.TouchScreen
enabled: heap.supportsCloseWindows
readonly property double targetOpacity: {
if (!heap.supportsCloseWindows) {
return 1;