Merge pull request #1722 from T99Rots/master

fix for issue #1676 by adding checking for button 0
This commit is contained in:
Charles Gagnon
2024-04-01 20:14:28 -04:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -1061,6 +1061,11 @@ export const 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() ?