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
This commit is contained in:
parent
dbd04df311
commit
02a51bfa65
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user