fixed the show desktop button not responding to touch events mentioned in #1676 by @catscratchedme

This commit is contained in:
T99Rots
2022-08-01 11:59:26 +02:00
parent 6a2863ea09
commit 269aa77f0e

View File

@@ -1170,6 +1170,11 @@ var Panel = GObject.registerClass({
this._setShowDesktopButtonStyle();
this._showDesktopButton.connect('touch-event', (actor, event) => {
if (event.type() == Clutter.EventType.TOUCH_BEGIN) {
this._onShowDesktopButtonPress();
}
});
this._showDesktopButton.connect('button-press-event', () => this._onShowDesktopButtonPress());
this._showDesktopButton.connect('enter-event', () => {
this._showDesktopButton.add_style_class_name(this._getBackgroundBrightness() ?