keshavbhatt / whatsie

Feature rich WhatsApp Client for Desktop Linux
MIT License
1.87k stars 54 forks source link

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 1 month ago

AlexFolland commented 1 month ago

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 commented 1 month ago

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.