Skip to content

Commit 5b20412

Browse files
committed
fix: temporary enable panel mask on geometry change to fix broken clickable area
This is a workaround while I figure out why this happens refs: #100
1 parent 91f3fa3 commit 5b20412

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

package/contents/ui/main.qml

+14-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PlasmoidItem {
3131
property bool hideWidget: plasmoid.configuration.hideWidget
3232
property bool fixedSidePaddingEnabled: isEnabled && panelSettings.padding.enabled
3333
property bool isEnabled: plasmoid.configuration.isEnabled
34-
property bool nativePanelBackgroundEnabled: isEnabled ? cfg.nativePanelBackground.enabled : enabled
34+
property bool nativePanelBackgroundEnabled: (isEnabled ? cfg.nativePanelBackground.enabled : enabled) || doPanelClickFix
3535
property real nativePanelBackgroundOpacity: isEnabled ? cfg.nativePanelBackground.opacity : 1.0
3636
property var panelWidgets: []
3737
property int panelWidgetsCount: panelWidgets?.length || 0
@@ -64,6 +64,7 @@ PlasmoidItem {
6464
}
6565

6666
property var unifiedBackgroundTracker: []
67+
property bool doPanelClickFix: false
6768
property bool doPanelLengthFix: false
6869

6970
property var cfg: {
@@ -122,11 +123,23 @@ PlasmoidItem {
122123
recolorCountChanged()
123124
}
124125

126+
// HACK: temporary enable panel mask on geometry change
127+
// to fix broken clickable area
128+
// https://github.com/luisbocanegra/plasma-panel-colorizer/issues/100
129+
// maybe also related to https://bugs.kde.org/show_bug.cgi?id=489086
130+
131+
function runPanelClickFix() {
132+
doPanelClickFix = true
133+
doPanelClickFix = false
134+
}
135+
125136
onPanelWidthChanged: {
137+
runPanelClickFix()
126138
updateMasks()
127139
}
128140

129141
onPanelHeightChanged: {
142+
runPanelClickFix()
130143
updateMasks()
131144
}
132145

0 commit comments

Comments
 (0)