Use non-rotated physical size of an output when required
-
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.
-
When comparing with physical size of libinput device.
-
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)