mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
workspaceAnimation: Fix warning on restacking
Only workspace groups that are associated with a workspace have a
background. As a result, when restacking window previews we end up
passing `undefined` to clutter_actor_set_child_above_sibling()
instead of null, triggering a warning.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2209>
(cherry picked from commit 5d1b9a429e)
This commit is contained in:
parent
71d6f7af81
commit
617938d6f2
1 changed files with 3 additions and 1 deletions
|
|
@ -73,11 +73,13 @@ class WorkspaceGroup extends Clutter.Actor {
|
|||
this._shouldShowWindow(w.meta_window));
|
||||
|
||||
let lastRecord;
|
||||
const bottomActor = this._background ?? null;
|
||||
|
||||
for (const windowActor of windowActors) {
|
||||
const record = this._windowRecords.find(r => r.windowActor === windowActor);
|
||||
|
||||
this.set_child_above_sibling(record.clone, lastRecord ? lastRecord.clone : this._background);
|
||||
this.set_child_above_sibling(record.clone,
|
||||
lastRecord ? lastRecord.clone : bottomActor);
|
||||
lastRecord = record;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue