summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel van Vugt <daniel.van.vugt@canonical.com>2023-03-14 17:35:34 +0800
committerMarge Bot <marge-bot@gnome.org>2023-03-19 13:12:22 +0000
commitb8013704cffbdedd2f82bcf38a556c6a74754615 (patch)
treecd713de9d339ffa6c510facac4eefc4570fcdb18
parent58af42caeaf8ef51f62aa22880c04638f21d5e06 (diff)
downloadgnome-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.js3
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();
}