From e9fa665fb27ea6e8a0fe89043bdfdd6a1823c9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Tue, 12 Nov 2019 00:59:16 +0100 Subject: [PATCH] kludges: use upstreams code to fix insertion issue This is fixed in upstream, so use the correct code. Probably not necessary, but dosen't hurt. --- kludges.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kludges.js b/kludges.js index 60a8452..77833ff 100644 --- a/kludges.js +++ b/kludges.js @@ -337,7 +337,11 @@ function init() { // Work around https://gitlab.gnome.org/GNOME/gnome-shell/issues/1884 if (!WindowManager.WindowManager._removeEffect) { registerOverridePrototype(WindowManager.WindowManager, '_mapWindowOverwrite', - WindowManager.WindowManager.prototype._mapWindowDone); + function (shellwm, actor) { + if (this._mapping.delete(actor)) { + shellwm.completed_map(actor); + } + }); } if (version[1] > 32)