keepassxc icon indicating copy to clipboard operation
keepassxc copied to clipboard

Scaling issues on monitors with different resolutions/scaling settings

Open atlantsecurity opened this issue 2 years ago • 7 comments

Overview

2 display issue: 200% scaling on monitor 1, no scaling on monitor 2, app works as expected only on monitor 1. Monitor 1: 3840x2160 Monitor 2: 1920x1080

Steps to Reproduce

  1. set scaling as above
  2. Move app from Monitor 1 to monitor 2
  3. App will be unusable: the various panes inside the app can't be used.

Expected Behavior

App changes scaling when you move it from monitor to monitor without affecting the panes inside the app.

Actual Behavior

Context

KeePassXC - 2.7.7 Revision: REVISION

Operating System: Windows 11

atlantsecurity avatar Apr 01 '24 08:04 atlantsecurity

I have the same issue on my Windows 11 notebook. Especially annoying as I am sometimes using 1 or 2 external monitors and when disconnecting these screens, KeepassXC does not correctly scales to the resolution of the notebook display. Only workaround is to kill KeepassXC and then restart.

MaStraCH avatar Apr 17 '24 11:04 MaStraCH

Similar here most noticeably when switching from one to multiple screens where single and extra screens have different resolutions. Often can resolve it by dragging to a different screen ad docking then moving back where I want it, but not always. V2.7.8 here.

EricMooreHays avatar Jun 12 '24 07:06 EricMooreHays

The same issue has been occurring since last year, so this is not a new issue. I have been using @EricMooreHays' workaround for many months

arafatx avatar Jul 06 '24 07:07 arafatx

I'm also experiencing this bug as I have to leave my desk often for calls, once the KeepassXC window changes scale all the underlying elements are mismatched and can't be clicked on which makes the program practically unusable.

jackw-fimak avatar Apr 23 '25 12:04 jackw-fimak

I reported this a while back.

https://github.com/keepassxreboot/keepassxc/issues/6664

Also mentioned in https://github.com/keepassxreboot/keepassxc/issues/8809

And here: https://github.com/keepassxreboot/keepassxc/issues/8035

And in that last one I posted a link to my 'fix', seen in this post:

https://github.com/keepassxreboot/keepassxc/issues/6262#issuecomment-1072743374

I used those settings for a long time when I had mismatching monitors. Now I have the same monitor for my triple setup, so I haven't used it in a while, but give it a shot and see if you can find a working way for your own setup.

Also, specifically regarding using KPXC when waking from sleep, I've noticed that the program is completely unresponsive to any mouse clicks around 50% of the time when waking my PC from sleep. My trick is to click and drag (just a tiny bit) the app titlebar, whereupon mouse clicks in the app work again.

The lack of mouse response can be simply no active clicking, or can be duplicated items in the app (like the quick unlock showing twice, and neither accepting a mouse click). Either way, just a simple grab and move the title bar fixes it (in the first case, mouse clicks work again, and in the second case, the duplicated quick unlock button resolves to a single, correctly oriented button and is clickable again).

HTH

JohnLGalt avatar Apr 23 '25 15:04 JohnLGalt

I was about to create a new issue, but then I found this.

I have the same issue on my end, using KPXC 2.7.10 on Windows 10.

In my case, I have a laptop which has a 1080p screen which I use at 125% scaling in Windows. It spends most of its life connected to a dock which has a 1440p monitor attached which I use also at 125% scaling and the laptop screen is disabled whenever I am docked.

More often than not, I launch KPXC while docked. Whenever I have to remove the laptop from the dock, I minimize all apps, then unplug. On the laptop itself, I don't encounter any issues. But, when it's time to dock again, I minimize all apps and plug in. Then, every time KPXC UI remains in an incorrectly scaled size and freezes. Keep in mind that KPXC is not restarted during all this. I cannot click anything, so only option is to close and then restart KPXC again.

I can reproduce this 100% of the time.

I would be happy to provide further details.

uelkue avatar May 16 '25 05:05 uelkue

Ultimately this is most likely a qt issue that will be resolved when we go to qt6

droidmonkey avatar May 16 '25 09:05 droidmonkey

I was also about to create a new issue, but found this one. Here's my setup: screen 1 (laptop screen): 1920 x 1080 resolution, 150% scaling screen 2 (external): 3440 x 1440 resolution, 100% scaling Windows 11, KeepassXC 2.7.11, revision 01e5b6e

Say, I first use KeepassXC on my laptop screen without connecting the external screen and everything works fine. Then I connect my laptop to the dock (which includes connection to the external screen) and KeePassXC finds itself on the big external screen, but scaling is off. However, if I then move the window manually to the laptop screen and back to the big screen, everything scales as it should. It seems as if KPXC is not aware that the system moved it to another screen with different scaling rather than it having issues with moving between screens.

dzikos avatar Dec 14 '25 10:12 dzikos

This is a qt problem

droidmonkey avatar Dec 14 '25 12:12 droidmonkey