Verified Commit 766d64c1 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

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.
parent 1c1cf61b
......@@ -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")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment