Bug 452010 - odd Libreoffice window scaling with hdpi on KDE Wayland
Summary: odd Libreoffice window scaling with hdpi on KDE Wayland
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.24.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://bugs.documentfoundation.org/s...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-28 17:22 UTC by Paul Grabbe
Modified: 2022-03-28 21:33 UTC (History)
2 users (show)

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


Attachments
Initial window on hdpi screen (105.98 KB, image/png)
2022-03-28 17:22 UTC, Paul Grabbe
Details
window when dragged onto normal resolution screen (82.90 KB, image/png)
2022-03-28 17:23 UTC, Paul Grabbe
Details
resized window on normal screen (113.67 KB, image/png)
2022-03-28 17:23 UTC, Paul Grabbe
Details
window when moved back onto hdpi screen (143.84 KB, image/png)
2022-03-28 17:24 UTC, Paul Grabbe
Details
initial print dialog window when opened on hdpi screen (165.27 KB, image/png)
2022-03-28 17:24 UTC, Paul Grabbe
Details
print dialog when dragged onto normal resolution screen (206.05 KB, image/png)
2022-03-28 17:25 UTC, Paul Grabbe
Details
landscape mode hdpi screen on right (243.91 KB, image/png)
2022-03-28 17:29 UTC, Paul Grabbe
Details
normal resolution portrait screen on left (261.74 KB, image/png)
2022-03-28 17:29 UTC, Paul Grabbe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Grabbe 2022-03-28 17:22:29 UTC
Created attachment 147798 [details]
Initial window on hdpi screen

Description of problem:

Libreoffice scaling is off when starting on HDPI screen in multi-monitor setup. Two monitors: 1050x1680 in portrait mode, 3840x2160 Landscape mode (150% scaling). 
1. If window opens on hdpi screen the scaling is off and menu bar & icons too small (see 1.png). Proper scaling if it happens to open on normal screen.

2. Dragging window fully onto normal resolution screen changes menu scaling to normal once fully moved over (see 2.png), but page sizing is off. 

3. Slightly resizing window restores page, side bars, and bottom icons. (see 3.png)

4. Window stays properly scaled when moved back onto hdpi screen (see 4.png)

5. Opening a dialog window such as print results in improperly scaled window contents. (see 5.png)

6. Dragging dialog window back onto normal screen causes contents to rescale. Dialog stays properly scaled when dragged back onto hdpi screen.

7. Sliding window over to the right reverts to small scaling when left edge of window is approximately 1/4 of the way from left edge of hdpi monitor.



Version-Release number of selected component:

Plasma 5.24.3, Frameworks 5.91.0, Qt 5.15.2, kernel 5.16.16-200.fc35.x86_64, Wayland.
Libreoffice 7.2.5.2.0+


How reproducible:

Every time

Steps to Reproduce:
1. Open Libreoffice on monitor setup as described above.
2. Drag window fully onto normal screen
3. Drag window back onto hdpi screen

Actual results:
improper window scaling

Expected results:
Proper window scaling

Additional info:




ADDITIONAL INFORMATION
This was also filed as a bug under Redhat bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=2051042, but comment there was to file this upstream.
Comment 1 Paul Grabbe 2022-03-28 17:23:15 UTC
Created attachment 147799 [details]
window when dragged onto normal resolution screen
Comment 2 Paul Grabbe 2022-03-28 17:23:44 UTC
Created attachment 147800 [details]
resized window on normal screen
Comment 3 Paul Grabbe 2022-03-28 17:24:09 UTC
Created attachment 147801 [details]
window when moved back onto hdpi screen
Comment 4 Paul Grabbe 2022-03-28 17:24:39 UTC
Created attachment 147802 [details]
initial print dialog window when opened on hdpi screen
Comment 5 Paul Grabbe 2022-03-28 17:25:09 UTC
Created attachment 147803 [details]
print dialog when dragged onto normal resolution screen
Comment 6 Paul Grabbe 2022-03-28 17:29:07 UTC
Created attachment 147804 [details]
landscape mode hdpi screen on right
Comment 7 Paul Grabbe 2022-03-28 17:29:50 UTC
Created attachment 147805 [details]
normal resolution portrait screen on left
Comment 8 Nate Graham 2022-03-28 21:33:44 UTC
This is an issue in LibreOffice itself; see https://bugs.documentfoundation.org/show_bug.cgi?id=137924