mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Update current time on top overlay reveal
Previously current hour might not have been updated if someone entered fullscreen without moving mouse cursor or with a touch
This commit is contained in:
@@ -112,6 +112,8 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
|
|
||||||
revealControls(isAllowInput)
|
revealControls(isAllowInput)
|
||||||
{
|
{
|
||||||
|
this._checkSetUpdateTimeInterval();
|
||||||
|
|
||||||
this.revealerTop.revealChild(true);
|
this.revealerTop.revealChild(true);
|
||||||
this.revealerBottom.revealChild(true);
|
this.revealerBottom.revealChild(true);
|
||||||
|
|
||||||
@@ -157,6 +159,9 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
|
|
||||||
this.revealerTop.revealerGrid.visible = !headerbar.visible;
|
this.revealerTop.revealerGrid.visible = !headerbar.visible;
|
||||||
|
|
||||||
|
if(this.revealerTop.child_revealed)
|
||||||
|
this._checkSetUpdateTimeInterval();
|
||||||
|
|
||||||
this.setControlsCanFocus(false);
|
this.setControlsCanFocus(false);
|
||||||
|
|
||||||
if(this.player.playOnFullscreen && isFullscreen) {
|
if(this.player.playOnFullscreen && isFullscreen) {
|
||||||
@@ -631,6 +636,17 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_checkSetUpdateTimeInterval()
|
||||||
|
{
|
||||||
|
if(
|
||||||
|
this.isFullscreenMode
|
||||||
|
&& !this.isMobileMonitor
|
||||||
|
&& !this._updateTimeTimeout
|
||||||
|
) {
|
||||||
|
this._setUpdateTimeInterval();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_setUpdateTimeInterval()
|
_setUpdateTimeInterval()
|
||||||
{
|
{
|
||||||
this._clearTimeout('updateTime');
|
this._clearTimeout('updateTime');
|
||||||
@@ -872,14 +888,6 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
this.needsCursorRestore = false;
|
this.needsCursorRestore = false;
|
||||||
}
|
}
|
||||||
this.revealControls();
|
this.revealControls();
|
||||||
|
|
||||||
if(
|
|
||||||
this.isFullscreenMode
|
|
||||||
&& !this.isMobileMonitor
|
|
||||||
&& !this._updateTimeTimeout
|
|
||||||
) {
|
|
||||||
this._setUpdateTimeInterval();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.posX = posX;
|
this.posX = posX;
|
||||||
|
Reference in New Issue
Block a user