Respect scaling factors for calculation of screen sizes and by that fix
off-center placement of output identifiers.
Details
Details
Works on X, on Wayland the positioning does not work in any case currently.
Diff Detail
Diff Detail
- Repository
- R104 KScreen
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Is it maybe not necessary at all on Wayland to respect the output scaling factors for the placement? It's difficult to test because the center placement is not possible anyways.
Comment Actions
Is it maybe not necessary at all on Wayland to respect the output scaling factors for the placement?
It is not necessary to do anything with scaling on wayland. All placement is in logical co-ordinates rather than device co-ordinates. Leave it alone and it will work.
kcm/src/widget.cpp | ||
---|---|---|
482 | you don't need this | |
484 | Avoid the term scaled. It could mean scaled from device -> logical, it could be scaled from logical->device. |