Bug 431076 - Wrong size of maximized LibreOffice window
Summary: Wrong size of maximized LibreOffice window
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.18.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-02 19:06 UTC by Lukas Sommer
Modified: 2023-09-06 13:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Sommer 2021-01-02 19:06:47 UTC
SUMMARY

Wrong size of maximized LibreOffice window

STEPS TO REPRODUCE

1. Start LibreOffice Writer
2. If the window is not maximized, maximize it.
3. Close the LibreOffice Writer window.
4. Start LibreOffic Writer again. It starts now with a maximized window. The icon in the window decoration indeed suggests that the window is maximized. (The tooltip is “restore”, so a click on the icon will restore the non-maximized size.)

OBSERVED RESULT

The width of the window is 1 pixel too small: The window is left-aligned, and on the right there is 1 pixel visible of the background or other windows below.

This is particularly disturbing, as the “Close window” button (x button) is in the top right corner. So, when going with the mouse to the top-right corner and doing a left-click, it’s not LibreOffice that is closed, but the window below.

EXPECTED RESULT

The LibreOffice window is maximized as expected. Doing a left-click with the mouse in the top right corner of the screen closes LibreOffice (and not the window below LibreOffice).

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-58-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 7,7 GiB

ADDITIONAL INFORMATION

HiDPI scaling is 150% on my screen.
Comment 1 David Edmundson 2023-09-06 10:08:21 UTC
>HiDPI scaling is 150% on my screen.

We have seen this lead to gaps due to rounding to integer logical sizes in the client. 
Given this is an old bug can you confirm if it's still an issue and if so if you see this in openbox with the scaling applied
Comment 2 Lukas Sommer 2023-09-06 13:10:53 UTC
Seems to be fixed. At least, I could not reproduce it anymore.