Chatterino window is too tall (for other apps) on Windows #5048
Labels
bug
Something isn't working as intended, or works in a confusing/unintuitive way for the user
OS: Windows
Checklist
Describe your issue
When taking a screenshot of Chatterino with ShareX, the detected bounds are too large (see screenshot). This is a bug in Chatterino, not ShareX.
In normal window placement (non-maximized), the window is 1px too tall. When maximized, the window is 8px too tall (or rather: dpr * 8px).
This is caused by the added margins.
Since Telegram seems to get this right (source), I used their handler in try/nccalcsize. I added that fix to my dpi branch locally (as they both modify the same code). I'll push some day.
Linking to #4868 and #3690 which both touch related code. I could probably integrate that into my PR, since it already removes the resize-fixing.
Screenshots
Maximized:
OS and Chatterino Version
Chatterino Nightly 7.4.5 (commit 2abb9c3) built on 2023-09-17 with Qt 6.5.0, MSVC 193732822 Running on Windows 10 Version 22H2, kernel: 10.0.19045
The text was updated successfully, but these errors were encountered: