summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2018-07-14 00:14:07 +0200
committerCarlos Garnacho <carlosg@gnome.org>2018-08-03 13:12:20 +0200
commit81956e9b84a751e0aae739ef08017d3bfef907c8 (patch)
tree4648706d99c5f7502516b92adf7dd4164712234d
parent6b41f823464380c2018f3431edf61bc6ff11354f (diff)
downloadgnome-shell-81956e9b84a751e0aae739ef08017d3bfef907c8.tar.gz
keyboard: defer position-changed till we have a rect
Emitting it that soon results in JS warnings, as we don't have everything in place yet. The position-changed signal will be emitted from other locations as soon as we have it. https://gitlab.gnome.org/GNOME/gnome-shell/issues/464 Closes: #464
-rw-r--r--js/ui/keyboard.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 1666a507b..4a2494044 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -526,9 +526,7 @@ var FocusTracker = new Lang.Class({
this._currentWindow = window;
if (window) {
this._currentWindowPositionId = this._currentWindow.connect('position-changed', () => {
- if (global.display.get_grab_op() == Meta.GrabOp.NONE)
- this.emit('position-changed');
- else
+ if (global.display.get_grab_op() != Meta.GrabOp.NONE)
this.emit('reset');
});
}