Lower CPU usage when OSD is visible

This commit is contained in:
Rafostar
2020-09-16 18:24:31 +02:00
parent 1c2a8a476e
commit ae766298a8
4 changed files with 106 additions and 8 deletions

View File

@@ -165,16 +165,16 @@ var App = GObject.registerClass({
this.player.connect('error', this._onPlayerError.bind(this));
this.player.connect('state-changed', this._onPlayerStateChanged.bind(this));
this.interface.revealerTop.connect(
this.player.connectWidget(
'button-press-event', this._onPlayerButtonPressEvent.bind(this)
);
this.interface.revealerTop.connect(
this.player.connectWidget(
'enter-notify-event', this._onPlayerEnterNotifyEvent.bind(this)
);
this.interface.revealerTop.connect(
this.player.connectWidget(
'leave-notify-event', this._onPlayerLeaveNotifyEvent.bind(this)
);
this.interface.revealerTop.connect(
this.player.connectWidget(
'motion-notify-event', this._onPlayerMotionNotifyEvent.bind(this)
);