Skip to content
Commit 9f46f605 authored by Alexander Volkov's avatar Alexander Volkov Committed by Vlad Zahorodnii
Browse files

Use non-rotated physical size of an output when required

1. In wl_output and kde_output_device_v2 protocols.
This should fix dpi calculation in
KScreen::Generator::bestScaleForOutput() when panel_orientation
is set to rotate a screen by 90 or 270 degrees.

2. When comparing with physical size of libinput device.

3. In calculations with mode sizes which are not rotated.

This change makes Output::physicalSize() return the raw
physical size, which is used in most of cases. It should
be rotated manually if needed.


(cherry picked from commit 64ce2471)
parent 58decc33
Pipeline #388433 failed with stage
in 29 minutes and 2 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment