mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2337>
This commit is contained in:
parent
c24785ce9f
commit
78a7cc1836
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue