Skip to content

Use non-rotated physical size of an output when required

Vlad Zahorodnii requested to merge work/cherry-pick-64ce2471 into Plasma/5.27
  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)

Merge request reports

Loading