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.
This commit is contained in:
ivan tkachenko 2022-07-26 23:47:19 +03:00
parent 1c1cf61b1f
commit 766d64c1e5
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

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