Main window is raised above the Add New Torrent dialog when opening magnet links from browser
qBittorrent & operating system versions
qBittorrent: 5.2.3 (Flatpak / Flathub) Qt: 6.10.3 libtorrent-rasterbar: 2.0.13 Operating system: Debian GNU/Linux 13 (Trixie), x86_64 Desktop environment: GNOME Display server: Wayland Flatpak runtime: org.kde.Platform/x86_64/6.10
What is the problem?
When qBittorrent is not already running, opening a magnet link from a web browser starts qBittorrent and opens the "Add New Torrent" dialog.
However, the main qBittorrent window is then raised above the "Add New Torrent" dialog. This hides the dialog behind the main window, so I have to manually bring the dialog back to the foreground before I can review and confirm the torrent.
This is quite annoying from a usability perspective, because after clicking a magnet link I naturally expect the relevant "Add New Torrent" dialog to be the window that remains visible and focused.
If qBittorrent is already running before I click the magnet link, the problem does not occur.
This has been happening for a long time and has persisted across multiple qBittorrent versions.
Steps to reproduce
- Make sure qBittorrent is completely closed.
- Open a web browser.
- Click a magnet link.
- qBittorrent starts.
- The "Add New Torrent" dialog opens.
- The main qBittorrent window is then raised above the dialog and hides it.
Expected behavior: The "Add New Torrent" dialog should remain in the foreground and receive focus when qBittorrent is started by opening a magnet link.
Actual behavior: The main qBittorrent window is raised above the "Add New Torrent" dialog.
Additional context
qBittorrent is installed from Flathub as org.qbittorrent.qBittorrent.
The issue occurs on Debian GNU/Linux 13 (Trixie), GNOME, Wayland.
The problem only occurs when qBittorrent is not already running when the magnet link is opened. If qBittorrent is already running, the "Add New Torrent" dialog behaves normally.
This issue has affected me for a long time and is not specific to qBittorrent 5.2.3.
Log(s) & preferences file(s)
No relevant logs are available for this issue. The problem concerns window focus/z-order when qBittorrent is launched via a magnet link.
Source: qbittorrent/qBittorrent