From 78a7cc18360e2330c8d45502670d01e22d5128f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 16 Jun 2022 22:35:56 +0200 Subject: [PATCH] windowManager: Undim parent when minimizing attached modal Minimizing modal dialogs is highly unconventional - and in fact disabled in our own code - but apps can still do it programmatically. The parent window shouldn't remain dimmed in that case, so make sure to re-check dimming when minimizing an attached modal. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5581 Part-of: --- js/ui/windowManager.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index bd47e6e5d..166480db8 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1141,6 +1141,10 @@ var WindowManager = class { } _minimizeWindow(shellwm, actor) { + const window = actor.meta_window; + if (window.is_attached_dialog()) + this._checkDimming(window.get_transient_for()); + const types = [ Meta.WindowType.NORMAL, Meta.WindowType.MODAL_DIALOG,