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.
master
ivan tkachenko 2 years ago
parent 1c1cf61b1f
commit 766d64c1e5
No known key found for this signature in database
GPG Key ID: AF72731B7C654CB3

@ -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")

Loading…
Cancel
Save