After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789838 - Some dialog boxes cause the main-parent window to disappear if moved
Some dialog boxes cause the main-parent window to disappear if moved
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-11-02 23:09 UTC by porkepix
Modified: 2021-07-05 14:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description porkepix 2017-11-02 23:09:33 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.
Comment 1 Florian Müllner 2017-11-02 23:17:22 UTC
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?
Comment 2 porkepix 2017-11-02 23:21:35 UTC
(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.
Comment 3 Florian Müllner 2017-11-02 23:29:26 UTC
(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
Comment 4 Florian Müllner 2017-11-02 23:31:58 UTC
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?
Comment 5 porkepix 2017-11-02 23:32:36 UTC
(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.
Comment 6 porkepix 2017-11-02 23:33:35 UTC
(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.
Comment 7 Márcio Vinícius 2018-01-20 21:30:07 UTC
(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.
Comment 8 Florian Müllner 2018-01-21 20:28:15 UTC
(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.
Comment 9 GNOME Infrastructure Team 2021-07-05 14:36:01 UTC
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.