altTab: Avoid setting GObject property to undefined instead of null
The windowActor in the CyclerHighlight was set to undefined if this._window was null. This was causing an error when trying to set it as a property. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4167 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1820>
This commit is contained in:
parent
28723ac088
commit
b93bf2bd69
@ -427,7 +427,7 @@ class CyclerHighlight extends St.Widget {
|
|||||||
if (this._clone.source)
|
if (this._clone.source)
|
||||||
this._clone.source.sync_visibility();
|
this._clone.source.sync_visibility();
|
||||||
|
|
||||||
const windowActor = this._window?.get_compositor_private();
|
const windowActor = this._window?.get_compositor_private() ?? null;
|
||||||
|
|
||||||
if (windowActor)
|
if (windowActor)
|
||||||
windowActor.hide();
|
windowActor.hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user