[gnome-shell] grabHelper: Correct typo preventing focus-window-changed disconnect
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] grabHelper: Correct typo preventing focus-window-changed disconnect
- Date: Sat, 16 Feb 2013 18:34:06 +0000 (UTC)
commit 5f995c64d4b9af9c2cede2bed530482128a04429
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Feb 16 12:44:04 2013 -0500
grabHelper: Correct typo preventing focus-window-changed disconnect
While debugging, I found that the signal to focus-window-changed
was never getting disconnected, making a call to ungrab every time
the focus window changed, even if there were no focus grabs anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=693975
js/ui/grabHelper.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js
index 0c0e190..058524a 100644
--- a/js/ui/grabHelper.js
+++ b/js/ui/grabHelper.js
@@ -232,7 +232,7 @@ const GrabHelper = new Lang.Class({
this._keyFocusNotifyId = 0;
}
- if (!this._focusWindowChanged > 0) {
+ if (this._focusWindowChangedId > 0) {
let metaDisplay = global.screen.get_display();
metaDisplay.disconnect(this._focusWindowChangedId);
this._focusWindowChangedId = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]