From 02a51bfa65528afd7ef2c72c7343ef583ebb6851 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Mon, 22 Aug 2016 19:53:38 +0200 Subject: [PATCH] windowManager: Fix windows not getting undimmed while hidden Mutter's plugin destroy event doesn't happen if a window is hidden when it gets unmanaged so we also need to handle the MetaWindow::unmanaged signal to check whether the parent should dimmed. https://bugzilla.gnome.org/show_bug.cgi?id=752524 --- js/ui/windowManager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 5222b986d..8b0398b3d 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1424,6 +1424,11 @@ const WindowManager = new Lang.Class({ actor._windowType = type; })); + actor.meta_window.connect('unmanaged', Lang.bind(this, function(window) { + let parent = window.get_transient_for(); + if (parent) + this._checkDimming(parent); + })); if (actor.meta_window.is_attached_dialog()) this._checkDimming(actor.get_meta_window().get_transient_for());