mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-15 00:34:05 +09:00
fixed the show desktop button not responding to touch events mentioned in #1676 by @catscratchedme
This commit is contained in:
5
panel.js
5
panel.js
@@ -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() ?
|
||||
|
||||
Reference in New Issue
Block a user