Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925562 - app-office/libreoffice-24.2[kde,qt6]: UI is scaled incorrectly in Plasma-6 Wayland session
Summary: app-office/libreoffice-24.2[kde,qt6]: UI is scaled incorrectly in Plasma-6 Wa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL: https://bugs.documentfoundation.org/s...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-02-26 23:01 UTC by Mike Lothian
Modified: 2024-03-25 19:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Screenshot (Screenshot_20240226_105827.jpeg,220.33 KB, image/jpeg)
2024-02-26 23:02 UTC, Mike Lothian
Details
Screenshot (Screenshot_20240226_105653.jpeg,140.59 KB, image/jpeg)
2024-02-26 23:02 UTC, Mike Lothian
Details
Backported fix (7989a04.diff,2.63 KB, patch)
2024-03-19 10:44 UTC, Mike Lothian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2024-02-26 23:01:36 UTC
I've tested with both 24.2.1.1 and 24.2.1.2

app-office/libreoffice-24.2.1.2::gentoo  USE="bluetooth branding clang cups custom-cflags dbus googledrive gstreamer java kde mariadb pdfimport qt6 vulkan -accessibility -base -coinmp -debug -eds -firebird -gtk -ldap -odk -postgres -qt5 -test -valgrind" LIBREOFFICE_EXTENSIONS="-nlpsolver -scripting-beanshell -scripting-javascript -wiki-publisher" PYTHON_SINGLE_TARGET="python3_11 -python3_10 -python3_12" 0 KiB


Reproducible: Always

Steps to Reproduce:
1. Build Libreoffice with Qt6
Comment 1 Mike Lothian 2024-02-26 23:02:10 UTC
Created attachment 886049 [details]
Screenshot
Comment 2 Mike Lothian 2024-02-26 23:02:42 UTC
Created attachment 886050 [details]
Screenshot
Comment 3 Mike Lothian 2024-02-26 23:08:19 UTC
I've reported this upstream too
Comment 4 Andreas Sturmlechner gentoo-dev 2024-02-27 11:22:37 UTC
Please specify to upstream which VCL you are really using here - right now your bug summaries are telling different things to us vs. them, and being precise and giving as much information as possible is key to the success of your bugs. You didn't even specify any versions of Qt6, KF6, Plasma yet which are also very relevant.

Building with USE="kde qt6" means you are building both Qt6 and KF6 VCL plugins.

The default plugin in use within your Plasma 6 session should be KF6, but upstream will assume you're running Qt6-only. LibreOffice's "About" dialog will tell you more.
Comment 5 Andreas Sturmlechner gentoo-dev 2024-02-27 11:28:24 UTC
You can test with different LO VCL plugins available, most relevant Qt6 and KF5, by running it with e.g. SAL_USE_VCLPLUGIN=qt6 set. Please also report your findings to upstream.
Comment 6 Mike Lothian 2024-02-28 15:19:50 UTC
Thanks for pointing that out

It's too big with both the qt6 and kf6 VCLs
Comment 7 Mike Lothian 2024-03-05 23:46:44 UTC
It's only an issue on Wayland, forcing Xwayland with QT_QPA_PLATFORM=xcb works around the isse
Comment 8 Andreas Sturmlechner gentoo-dev 2024-03-16 16:13:50 UTC
Can you test the upstream fix provided 3 days ago?
Comment 9 Mike Lothian 2024-03-19 10:44:08 UTC
The environment override works, and I applied the backport https://gerrit.libreoffice.org/c/core/+/164744 against 24.2.2.1 which also worked great, thanks
Comment 10 Mike Lothian 2024-03-19 10:44:49 UTC
Created attachment 887915 [details, diff]
Backported fix
Comment 11 Andreas Sturmlechner gentoo-dev 2024-03-25 19:27:54 UTC
Thanks, fixed in 24.2.2.2.