Blame SOURCES/0001-keyboard-defer-position-changed-till-we-have-a-rect.patch

547cbf
From 952a066deec0de9529d96ee3a7c27a9b78bafa24 Mon Sep 17 00:00:00 2001
547cbf
From: Carlos Garnacho <carlosg@gnome.org>
547cbf
Date: Sat, 14 Jul 2018 00:14:07 +0200
547cbf
Subject: [PATCH] keyboard: defer position-changed till we have a rect
547cbf
547cbf
Emitting it that soon results in JS warnings, as we don't have
547cbf
everything in place yet. The position-changed signal will be
547cbf
emitted from other locations as soon as we have it.
547cbf
547cbf
https://gitlab.gnome.org/GNOME/gnome-shell/issues/464
547cbf
547cbf
Closes: #464
547cbf
---
547cbf
 js/ui/keyboard.js | 4 +---
547cbf
 1 file changed, 1 insertion(+), 3 deletions(-)
547cbf
547cbf
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
547cbf
index 26e9a8de8..5d0cc52ab 100644
547cbf
--- a/js/ui/keyboard.js
547cbf
+++ b/js/ui/keyboard.js
547cbf
@@ -530,9 +530,7 @@ var FocusTracker = new Lang.Class({
547cbf
         this._currentWindow = window;
547cbf
         if (window) {
547cbf
             this._currentWindowPositionId = this._currentWindow.connect('position-changed', () => {
547cbf
-                if (global.display.get_grab_op() == Meta.GrabOp.NONE)
547cbf
-                    this.emit('position-changed');
547cbf
-                else
547cbf
+                if (global.display.get_grab_op() != Meta.GrabOp.NONE)
547cbf
                     this.emit('reset');
547cbf
             });
547cbf
         }
547cbf
-- 
547cbf
2.26.2
547cbf