GUI: Main window shows up on previous monitor after being restored from being minimized (regression in 5.x) #16234

Open
opened 2026-02-22 02:55:49 -05:00 by deekerman · 9 comments
Owner

Originally created by @sirfog on GitHub (Oct 18, 2024).

qBittorrent & operating system versions

qBittorrent: 5.0.0 64-bit
Operating system: Windows 10 Home x64 (22H2) Version 10.0.19045 Build 19045
Qt: 6.7.3
Libtorrent: 1.2.19.0

What is the problem?

On a multi-monitor system the main window returns to the previous monitor if you drag it between monitors when maximized

Steps to reproduce

  1. On monitor 1 maximize main window
  2. Drag main window to monitor 2, dropping it also maximized (cursor glued to the top of the monitor)
  3. Minimize main window on second monitor
  4. Unminimize main window from the taskbar
  5. Main window shows up on monitor 1

Additional context

  • Setting to minimize to tray is off
  • It didn't happen on pré v5.0.0

Log(s) & preferences file(s)

qBittorent_files.zip

Originally created by @sirfog on GitHub (Oct 18, 2024). ### qBittorrent & operating system versions qBittorrent: 5.0.0 64-bit Operating system: Windows 10 Home x64 (22H2) Version 10.0.19045 Build 19045 Qt: 6.7.3 Libtorrent: 1.2.19.0 ### What is the problem? On a multi-monitor system the main window returns to the previous monitor if you drag it between monitors when maximized ### Steps to reproduce 1. On monitor 1 maximize main window 2. Drag main window to monitor 2, dropping it also maximized (cursor glued to the top of the monitor) 3. Minimize main window on second monitor 4. Unminimize main window from the taskbar 5. Main window shows up on monitor 1 ### Additional context - Setting to minimize to tray is off - It didn't happen on pré v5.0.0 ### Log(s) & preferences file(s) [qBittorent_files.zip](https://github.com/user-attachments/files/17437811/qBittorent_files.zip)
Author
Owner

@stalkerok commented on GitHub (Oct 18, 2024):

Confirmed.

3. Minimize main window on second monitor

Can also "roll down in the window". The window will move to another screen.
But if you expand the window in the usual way to full screen, without gluing it to the top of the screen, there is no such issue.

https://github.com/user-attachments/assets/403eb4da-673b-4832-9d5e-b5374490e17c

@stalkerok commented on GitHub (Oct 18, 2024): Confirmed. > 3\. Minimize main window on second monitor Can also "roll down in the window". The window will move to another screen. But if you expand the window in the usual way to full screen, without gluing it to the top of the screen, there is no such issue. https://github.com/user-attachments/assets/403eb4da-673b-4832-9d5e-b5374490e17c
Author
Owner

@lkeels commented on GitHub (Apr 18, 2025):

This is still not fixed in 5.0.5

@lkeels commented on GitHub (Apr 18, 2025): This is still not fixed in 5.0.5
Author
Owner

@keepstay commented on GitHub (Apr 20, 2025):

wish it will get fixed some day

@keepstay commented on GitHub (Apr 20, 2025): wish it will get fixed some day
Author
Owner

@glassez commented on GitHub (Apr 20, 2025):

This is most likely a problem in Qt. Can someone test a qBittorrent build with a different version of Qt (6.8 or 6.9) while keeping all other conditions unchanged?

@glassez commented on GitHub (Apr 20, 2025): This is most likely a problem in Qt. Can someone test a qBittorrent build with a different version of Qt (6.8 or 6.9) while keeping all other conditions unchanged?
Author
Owner

@sirfog commented on GitHub (Apr 28, 2025):

Just updated to qBittorrent v5.1.0 (64-bit)

Software:
Qt: 6.9.0
Libtorrent: 1.2.20.0
Boost: 1.86.0
OpenSSL: 3.5.0
zlib: 1.3.1

The problem remains.

@sirfog commented on GitHub (Apr 28, 2025): Just updated to qBittorrent v5.1.0 (64-bit) Software: Qt: 6.9.0 Libtorrent: 1.2.20.0 Boost: 1.86.0 OpenSSL: 3.5.0 zlib: 1.3.1 The problem remains.
Author
Owner

@Mncdk commented on GitHub (Nov 10, 2025):

I ran into this issue today, but I think I have made it go away again - at least for now.

These were my steps
Restore the window - making it windowed instead of maximized.
Minimize the window and restore it.
Maximize the window.

After that, it would again restore to the correct monitor after being minimized.

@Mncdk commented on GitHub (Nov 10, 2025): I ran into this issue today, but I think I have made it go away again - at least for now. These were my steps Restore the window - making it windowed instead of maximized. Minimize the window and restore it. Maximize the window. After that, it would again restore to the correct monitor after being minimized.
Author
Owner

@qBittUser commented on GitHub (Nov 13, 2025):

Can somebody still reproduce with v5.1.3?

@qBittUser commented on GitHub (Nov 13, 2025): Can somebody still reproduce with v5.1.3?
Author
Owner

@sirfog commented on GitHub (Nov 17, 2025):

Just updated to qBittorrent v5.1.3 (64-bit)

Qt: 6.9.3
Libtorrent: 1.2.20.0
Boost: 1.86.0
OpenSSL: 3.6.0
zlib: 1.3.1

The problem remains.

@sirfog commented on GitHub (Nov 17, 2025): Just updated to qBittorrent v5.1.3 (64-bit) Qt: 6.9.3 Libtorrent: 1.2.20.0 Boost: 1.86.0 OpenSSL: 3.6.0 zlib: 1.3.1 The problem remains.
Author
Owner

@lkeels commented on GitHub (Nov 17, 2025):

Reproduceable on 5.1.3, yes.

@lkeels commented on GitHub (Nov 17, 2025): Reproduceable on 5.1.3, yes.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#16234
No description provided.