[gnome-shell] windowManager: Make sure to reset the resizePopup after using it
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] windowManager: Make sure to reset the resizePopup after using it
- Date: Fri, 2 Jan 2015 17:34:17 +0000 (UTC)
commit 897144baba90bff8e012c89a0c5b3128dc041ed6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Jan 2 09:27:52 2015 -0800
windowManager: Make sure to reset the resizePopup after using it
So that we'll recreate it the next time we want to show it. Otherwise,
we'll try to call things on a half-destroyed ResizePopup and end up
causing errors instead of showing the user their resize popup.
js/ui/windowManager.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index 56f33a5..65ec623 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -1561,8 +1561,10 @@ const WindowManager = new Lang.Class({
this._resizePopup.set(rect, displayW, displayH);
} else {
- if (this._resizePopup)
+ if (this._resizePopup) {
this._resizePopup.destroy();
+ this._resizePopup = null;
+ }
}
},
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]