From 766d64c1e5760fd49513dda797e8e33067b9e502 Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Tue, 26 Jul 2022 23:47:19 +0300 Subject: [PATCH] effects/private: Port potential misuse of a dragHandler to activeDragHandler There are two drag handlers, and an `activeDragHandler` property to switch between them. That's what other code is doing in this component. --- src/effects/private/qml/WindowHeapDelegate.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/private/qml/WindowHeapDelegate.qml b/src/effects/private/qml/WindowHeapDelegate.qml index 699203e542..a9596ef830 100644 --- a/src/effects/private/qml/WindowHeapDelegate.qml +++ b/src/effects/private/qml/WindowHeapDelegate.qml @@ -367,7 +367,7 @@ Item { margins: PlasmaCore.Units.smallSpacing } - visible: thumb.closeButtonVisible && (hoverHandler.hovered || Kirigami.Settings.tabletMode || Kirigami.Settings.hasTransientTouchInput) && thumb.client.closeable && !dragHandler.active + visible: thumb.closeButtonVisible && (hoverHandler.hovered || Kirigami.Settings.tabletMode || Kirigami.Settings.hasTransientTouchInput) && thumb.client.closeable && !thumb.activeDragHandler.active LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft text: i18ndc("kwin_effects", "@info:tooltip as in: 'close this window'", "Close window")