File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ PlasmoidItem {
31
31
property bool hideWidget: plasmoid .configuration .hideWidget
32
32
property bool fixedSidePaddingEnabled: isEnabled && panelSettings .padding .enabled
33
33
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
35
35
property real nativePanelBackgroundOpacity: isEnabled ? cfg .nativePanelBackground .opacity : 1.0
36
36
property var panelWidgets: []
37
37
property int panelWidgetsCount: panelWidgets? .length || 0
@@ -64,6 +64,7 @@ PlasmoidItem {
64
64
}
65
65
66
66
property var unifiedBackgroundTracker: []
67
+ property bool doPanelClickFix: false
67
68
property bool doPanelLengthFix: false
68
69
69
70
property var cfg: {
@@ -122,11 +123,23 @@ PlasmoidItem {
122
123
recolorCountChanged ()
123
124
}
124
125
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
+
125
136
onPanelWidthChanged: {
137
+ runPanelClickFix ()
126
138
updateMasks ()
127
139
}
128
140
129
141
onPanelHeightChanged: {
142
+ runPanelClickFix ()
130
143
updateMasks ()
131
144
}
132
145
You can’t perform that action at this time.
0 commit comments