diff options
author | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2023-03-14 17:35:34 +0800 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2023-03-19 13:12:22 +0000 |
commit | b8013704cffbdedd2f82bcf38a556c6a74754615 (patch) | |
tree | cd713de9d339ffa6c510facac4eefc4570fcdb18 | |
parent | 58af42caeaf8ef51f62aa22880c04638f21d5e06 (diff) | |
download | gnome-shell-b8013704cffbdedd2f82bcf38a556c6a74754615.tar.gz |
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>
-rw-r--r-- | js/ui/appDisplay.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 17afb899d..75a458f7b 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -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(); } |