GNOME Bugzilla – Bug 789838
Some dialog boxes cause the main-parent window to disappear if moved
Last modified: 2021-07-05 14:36:01 UTC
This bug report is a follow-up of https://bugs.documentfoundation.org/show_bug.cgi?id=105462 Some types of dialog boxes in Gnome are child of main windows (modal window it seems is the correct name). Those dialog boxes (for example the Save… one in Gedit) have a behavior problem when user try to move them: move this dialog box even a bit to see what's behind it result in the main parent window disappearing. Then user have no choice but to move the modal window to a side or the top to enable side-resizes, which are going to resize the main-parent window rather than the modal-child one. It should instead be possible to move the modal-child window (by default, without the tweak tools) without causing the main-parent one to disappear.
What does "disappear" mean? The expected behavior (if the attached-modal-dialogs setting is enabled) is that moving a dialog will also move the parent. But no window should just vanish, if that is what you mean - what exactly is the reproducer for this?
(In reply to Florian Müllner from comment #1) > What does "disappear" mean? The expected behavior (if the > attached-modal-dialogs setting is enabled) is that moving a dialog will also > move the parent. But no window should just vanish, if that is what you mean > - what exactly is the reproducer for this? Well, take for example the "Save as…" dialog box in Gedit (or many LibreOffice dialog boxes) and try to move it on the titlebar. Once you move a big the dialog box, then the main one it's attached to will just vanish. And stay like that until you move the dialog box against left/right/top border, which will then trigger window resize respectively to half-left/half-right/full screen and put the modal dialog window back to the center of the screen. Reproduced on Gnome 3.24 and 3.26 on Archlinux.
(In reply to porkepix from comment #2) > Well, take for example the "Save as…" dialog box in Gedit (or many > LibreOffice dialog boxes) and try to move it on the titlebar. > Once you move a big the dialog box, then the main one it's attached to will > just vanish. Mmmh, nothing vanishes here: https://people.gnome.org/~fmuellner/move-attached-modal.webm
Ah, maybe I get what you mean. Is the main window maximized? In that case, moving the attached dialog will unmaximize it, possibly to a size smaller than the dialog. Is that what you are saying?
(In reply to Florian Müllner from comment #3) > (In reply to porkepix from comment #2) > > Well, take for example the "Save as…" dialog box in Gedit (or many > > LibreOffice dialog boxes) and try to move it on the titlebar. > > Once you move a big the dialog box, then the main one it's attached to will > > just vanish. > > Mmmh, nothing vanishes here: > https://people.gnome.org/~fmuellner/move-attached-modal.webm Two reasons I could see for having a different behavior: I did my tests on maximized windows. Screen resolutions were a lot lower (tested on 1280x1024 and 1366x768 screens). I can test when I'll have it at hand to have a video on the second one (it's not mine) if I can do it, it's sadly impossible for the first one, the computer isn't powerful enough and screencast is causing issues on it.
(In reply to Florian Müllner from comment #4) > Ah, maybe I get what you mean. Is the main window maximized? In that case, > moving the attached dialog will unmaximize it, possibly to a size smaller > than the dialog. Is that what you are saying? Yeah, it was maximized windows only. It didn't look like being smaller, rather really disappearing, but if you say it could resize it to a smaller size hidden under the dialog box, well, maybe that's what happens then.
(In reply to Florian Müllner from comment #1) > (if the attached-modal-dialogs setting is enabled) How can disable this setting? This behavior is pretty annoying when parent window is maximized. They shouldn't move together when parent window is maximized, they should work independently when maximized.
(In reply to Márcio Vinícius from comment #7) > How can disable this setting? It depends. In a regular upstream GNOME session, `gsettings set org.gnome.shell.overrides attach-modal-dialogs false`, a schema of 'org.gnome.shell.extensions.classic-overrides' for the classic session and afaik 'org.gnome.mutter' for a Ubuntu-patched GNOME.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.