mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
workspacesView: Make active workspace above siblings
If there's a window flowing over the left edge in a workspace, the
animation of showing or hiding overview in the left adjacent workspace
would glitch, as the window would appear or disappear suddenly.
This commits tries to fix it by making sure the active workspace are
above other workspaces when updating workspaces or active workspace
changed in workspacesView.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7364
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3378>
(cherry picked from commit ab87629241)
This commit is contained in:
parent
a9033808ad
commit
9b3ab9aca4
1 changed files with 7 additions and 0 deletions
|
|
@ -440,6 +440,11 @@ class WorkspacesView extends WorkspacesViewBase {
|
|||
}
|
||||
}
|
||||
|
||||
_raiseActiveWorkspace() {
|
||||
const activeWorkspace = this.getActiveWorkspace();
|
||||
this.set_child_above_sibling(activeWorkspace, null);
|
||||
}
|
||||
|
||||
_updateWorkspaces() {
|
||||
let workspaceManager = global.workspace_manager;
|
||||
let newNumWorkspaces = workspaceManager.n_workspaces;
|
||||
|
|
@ -472,10 +477,12 @@ class WorkspacesView extends WorkspacesViewBase {
|
|||
|
||||
this._updateWorkspacesState();
|
||||
this._updateVisibility();
|
||||
this._raiseActiveWorkspace();
|
||||
}
|
||||
|
||||
_activeWorkspaceChanged(_wm, _from, _to, _direction) {
|
||||
this._scrollToActive();
|
||||
this._raiseActiveWorkspace();
|
||||
}
|
||||
|
||||
_onDestroy() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue