qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.13k stars 3.9k forks source link

Window resized (shrunk) on resolution change or Remote Desktop use #13007

Open ltguillaume opened 4 years ago

ltguillaume commented 4 years ago

qBittorrent version and Operating System

v4.0.0 - v4.2.5 on Win10 (x64) (10.0.1xxxx)

What is the problem

Every single time I use Remote Desktop, the qBittorrent window resets its size. The only difference between the RDP session and the local session is the screen resolution, the DPI remains the same. It should be the user's prerogative to change the window size, not the program's, even if the window would fall beyond the desktop.

What is the expected behavior

The window won't get resized when the resolution changes (due to RDP connections). This is entirely for the user to manage. The window position could possibly be corrected if the right/bottom falls beyond the desktop with the new resolution.

Steps to reproduce

  1. Start qBittorrent
  2. Log on via RDP with a smaller screen (or possibly just change to a lower resolution).
  3. The window will be shrunk and centered on the screen

Extra info(if any)

With the dividers and all the different columns in qBittorrent, it is a program for which it is especially important to retain it's dimensions across sessions: many users will set up their window to a (pixel-perfect) preference.

thickconfusion commented 4 years ago

Likely related to #9732 .

ltguillaume commented 4 years ago

Likely related to #9732 .

Text size is set to 100% on both systems, though.

xavier2k6 commented 11 months ago

@ltguillaume Can you reproduce with latest Qt6 based build of qBittorrent 4.5.5?

ltguillaume commented 11 months ago

@xavier2k6 Yes, it still does:

  1. Started qBittorrent via RDP, window size resets
  2. Resized the window, closed qBittorrent
  3. Restarted qBittorrent via RDP, window size is like user has set
  4. Closed and restarted qBittorrent without RDP, window size is reset again
  5. Resized the window, closed qBittorrent, start at 1

For both the RDP session and non-RDP session, the window size easily fits the (different) screen resolutions.

ltguillaume commented 8 months ago

Still present on v4.6.x. It's extremely annoying tbh.

luzpaz commented 7 months ago

@ltguillaume would you kindly provide a screencast of the bug ?

ltguillaume commented 7 months ago

I would if I could, but there's no way to do that when switching between remote desktop connection and local login. Besides, I've found that the recent versions do not consistently resize their windows anymore when switching between RDP and local, but eventually the window still ends up being centred and resized to 916x595, always, whatever I do.