Make secondary window independent?

Suppose I right-click on a website link to download it. A secondary window pops up to allow me to choose where on my machine I want to put the download. The trouble is, to return to the primary window, I must close the secondary window.

In this regard, Linux is now similar to Windows, but it used to be different. In the past (on Ubuntu, at least, which I used until my recent conversion to Fedora), I had the freedom to return to the primary window without closing the secondary by simply clicking on the primary.

That was a freedom I found very useful, because often when downloading a file, I assign it a name based on information visible in the primary window, provided it is not obscured by the secondary window. For example, if I’m downloading a paper entitled ā€œAdvantages of Fedoraā€ written by authors Zenburtzese and Baathesen in May 2024, I might name the file Zenburtzese & Baathesen 2025-05 Fedora Advs.pdf. It’s much easier to get that file name right if I can see the primary window while typing it, which I can’t do if the secondary window is obscuring it.

I also liked the fact that, unlike windows, Linux trusted me to be smart enough to manage the two windows independently. Windows (and, nowadays, Linux), seems worried that I might be confused by having both windows accessible at the same time.

Is there a way to get back to the old behavior, where the primary window can be activated without closure of the secondary?

This is a Desktop function, not strictly a Fedora function.

What desktop are you on?

It might have something to do with window ā€˜focus’.

I’m running Gnome.

I’ve looked through the settings, but I can’t find anything relating to focus – or to windowing, for that matter.

Does everyone else experience the same behavior of secondary windows that I do? (And am I the only one who is annoyed by it? ;))

Install Gnome Tweaks (not promising that it is there) and also look at gsettings comand line Gnome settings.

With a ā€˜save as’ window it could also be part of your file browser settings.

I don’t think this has anything to do with your desktop but instead with your browser. At least when I set Firefox to ask for where to store a download, it opens a modal dialog. And that’s just how they behave, you need to dismiss them before you can continue working in the parent window.

1 Like

Thanks, both. It does now seem likely that it’s a Firefox issue.

Hey Ken,

If you are using FireFox, instead of right clicking on the link for download, try middle-click (open a new window) so that the download opens in it’s own window/tab …..

You should install Refine from flathub.

And then you should disable the option pointed in the following screenshot

From my tests, when this option is disabled, in Firefox I can move the file selector window. However, as it is still a modal dialog, in the window that created the dialog (and only in that window) you are still stuck on the tab that opened the dialog :zany_face:

The option can also be toggled without installing Refine with the following command:

dconf write /org/gnome/mutter/attach-modal-dialogs false

or

dconf write /org/gnome/mutter/attach-modal-dialogs true
2 Likes

Not allowing the user to return to the main window when a modal window is open is a sane design choice, and applied across several apps and systems. Firefox just follows here the ā€œestablishedā€ design principles.

Looking at other examples, such as GNOME Files, you can chose there to copy a file to another location with the ā€œCopy toā€¦ā€ option in the context menu. If it were possible to interact with the main window, that would send the modal window in the background, and the user then could do the same (or similar) operation(s) over and over again, resulting in several modal windows open that could be acted upon. That would wreak havoc.

That does the trick! Thanks!!

You’re right. I misstated my complaint. The problem isn’t that I can’t return to the main window, it’s that I can’t move the modal window, which usually hides all of the useful information in the main window. Anyway, slubman shows an easy way to make modal windows moveable.

1 Like