davidedmundson created this revision. Restricted Application added a project: Frameworks. Restricted Application added a subscriber: Frameworks. davidedmundson requested review of this revision.
REVISION SUMMARY Done primarily for XWayland which for legacy reasons doesn't assume the logical size of a display is pixelSize / outputScale. Meaning xwayland windows that position themselves are wrong in a scaled environment. It also allows the possibility for us to support fractional scaling whilst keeping wl_output::scale as an integer. The protocol is a bit odd as it operates via the FooManager + Foo pattern rather than using globals like Output so I've wrapped it so it behaves more like globals. TEST PLAN #plasma <https://phabricator.kde.org/tag/plasma/> REPOSITORY R127 KWayland BRANCH davidedmundson/xdgoutput REVISION DETAIL https://phabricator.kde.org/D12235 AFFECTED FILES autotests/client/CMakeLists.txt autotests/client/test_xdg_output.cpp src/client/CMakeLists.txt src/client/protocols/xdg-output-unstable-v1.xml src/client/registry.cpp src/client/registry.h src/client/xdgoutput.cpp src/client/xdgoutput.h src/server/CMakeLists.txt src/server/display.cpp src/server/display.h src/server/xdgoutput_interface.cpp src/server/xdgoutput_interface.h src/tools/mapping.txt To: davidedmundson Cc: #frameworks, michaelh, ngraham, bruns