appDisplay: Avoid using an undefined _swipeTracker

It might have been deleted already during shutdown by `_onDestroy()`.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6512
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2693>
This commit is contained in:
Daniel van Vugt 2023-03-14 17:35:34 +08:00 committed by Marge Bot
parent 58af42caea
commit b8013704cf

View File

@ -1237,7 +1237,8 @@ var BaseAppView = GObject.registerClass({
}
vfunc_unmap() {
this._swipeTracker.enabled = false;
if (this._swipeTracker)
this._swipeTracker.enabled = false;
this._disconnectDnD();
super.vfunc_unmap();
}