mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
workspacesView: Don't update secondary monitor thumbnails box if hidden
And save quite a few C/JS trampolines. Since the thumbnails box may not have up-to-date properties, call _updateThumbnailParams() right after showing the thumbnails box. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1845>
This commit is contained in:
parent
a63c44ba2c
commit
81210f5846
1 changed files with 4 additions and 0 deletions
|
|
@ -777,6 +777,7 @@ class SecondaryMonitorDisplay extends St.Widget {
|
|||
return;
|
||||
|
||||
this._thumbnails.show();
|
||||
this._updateThumbnailParams();
|
||||
this._thumbnails.ease_property('expand-fraction', visible ? 1 : 0, {
|
||||
duration: OverviewControls.SIDE_CONTROLS_ANIMATION_TIME,
|
||||
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
|
||||
|
|
@ -785,6 +786,9 @@ class SecondaryMonitorDisplay extends St.Widget {
|
|||
}
|
||||
|
||||
_updateThumbnailParams() {
|
||||
if (!this._thumbnails.visible)
|
||||
return;
|
||||
|
||||
const { initialState, finalState, progress } =
|
||||
this._overviewAdjustment.getStateTransitionParams();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue