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

When a scaling factor ("Zoom factor when normal" in the settings) is set, the minimum window size is not multiplied by the scale factor, causing the window to be forced to be too large #192

Open
AlexFolland opened this issue Aug 13, 2024 · 1 comment

Comments

@AlexFolland
Copy link

AlexFolland commented Aug 13, 2024

I have set a scaling factor of 0.5 when not maximized so that WhatSie can fit in a smaller location on my secondary display, but the minimum window size is large, at 525 by 470. I can't resize it smaller than that in a KDE Plasma Wayland session using KWin as the window manager. It just rejects the resize motions below those dimensions. I also can't seem to even force it to be smaller using KWin window rules.

If KWin can't even enforce its own rules on window sizes, instead, WhatSie should at least multiply its minimum window size by the scale factor, so that it can be resized smaller if it's being scaled smaller. That would allow the window to fit where I want to place it.

To clarify, my desired size is 480 by 270, which is one quarter in each dimension of 1920 by 1080, meaning a tile that fits in a 1/16 portion of a 1920 by 1080 display. I can read the text at that size, but just can't set the window size to that with WhatSie.

@AlexFolland AlexFolland changed the title When a scaling factor is set, the minimum window size is not multiplied by the scale factor, causing the window to be forced to be too large When a scaling factor ("zoom factor" in the settings) is set, the minimum window size is not multiplied by the scale factor, causing the window to be forced to be too large Aug 13, 2024
@AlexFolland AlexFolland changed the title When a scaling factor ("zoom factor" in the settings) is set, the minimum window size is not multiplied by the scale factor, causing the window to be forced to be too large When a scaling factor ("Zoom factor when normal" in the settings) is set, the minimum window size is not multiplied by the scale factor, causing the window to be forced to be too large Aug 13, 2024
@AlexFolland
Copy link
Author

I tried to use a workaround of environment variable QT_SCALE_FACTOR=0.5 which I'm using for some other Qt programs on the same display, which does indeed fix the window size problem, but it severely breaks WhatSie by making WhatSie only display the top-left quadrant of the output. Here's a screenshot of that.

image

It looks like using the environment variable is almost perfect, except for the missing output.

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

No branches or pull requests

1 participant