Skip to content
Commit 64ce2471 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.
parent 8bfb0b1f
Pipeline #388405 canceled with stage
in 1 minute and 4 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