Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window shrinkage from waking up PC #11447

Open
nevaran opened this issue Nov 7, 2024 · 4 comments
Open

Window shrinkage from waking up PC #11447

nevaran opened this issue Nov 7, 2024 · 4 comments

Comments

@nevaran
Copy link

nevaran commented Nov 7, 2024

Overview

Extremely often, but seemingly not always, the actual window will completely shrink down, sometimes the real size will have a ghosting effect where it will just break usability, and will not get fixed unless the program is closed and opened again.
Context menu on the taskbar tray also gets sized down.

Difference compared:
image
image

Steps to Reproduce

  1. Put computer to sleep, unknown if the window needs to be open or not
  2. Wake up PC
  3. Shrinkage.

Expected Behavior

Unchanged window size

Actual Behavior

Cold crotch phenomenon

KeePassXC - Version 2.7.9
Revision: 8f6dd13

Qt 5.15.11
Debugging mode is disabled.

Operating system: Windows 11 Version 2009 (note: shows 2033 on actual windows)
CPU architecture: x86_64
Kernel: winnt 10.0.26100

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • Passkeys
  • SSH Agent
  • KeeShare
  • YubiKey
  • Quick Unlock

Cryptographic libraries:

  • Botan 3.1.1

NOTE:
Operating System: Windows 11
Dual monitor setup, 1440p@125%(primary) scale and 1080p@100% scale

@nevaran nevaran added the bug label Nov 7, 2024
@droidmonkey
Copy link
Member

droidmonkey commented Nov 7, 2024

Your screenshots look exactly the same.

Since you are running two very different sized monitors, you should try explicitly setting the screen scale factors using qt environment variables, specifically this one: QT_SCREEN_SCALE_FACTORS

https://keepassxc.org/docs/KeePassXC_UserGuide#_command_line_options

@nevaran
Copy link
Author

nevaran commented Nov 8, 2024

There was no such issues before prior to version 2.7.9 and Windows 10.
Also yes a bit difficult to distinguish the screenshots, but you can see compared to the icons at the bottom they are bigger on the shrunk down version, and the normal window (second screenshot) has more screen space taken to the right to the point where other icons are showing to fit the whole window.

About the screen scale factors, what about it working with autostart?

@phoerious
Copy link
Member

Windows is known to do that if you have monitors with different scaling factors. Even the Windows Explorer does that. It's usually fixed by either resizing the window or moving it between monitors.

@nevaran
Copy link
Author

nevaran commented Nov 8, 2024

I did try to resize the window and nothing happened.
Also as i mentioned in the original post - even the tray icon's context menu is resized down. Not sure whats up with that.
I havent tried to move it between windows though, im gonna try that next time it happens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants