https://bugs.kde.org/show_bug.cgi?id=384765

--- Comment #2 from David Edmundson <[email protected]> ---
Git commit 7e6721ece08a90c594894eecca7f1cb602646535 by David Edmundson.
Committed on 30/10/2017 at 13:27.
Pushed by davidedmundson into branch 'master'.

Scaled decorations in QPainter mode

Summary:
Under wayland we support high DPI putting by putting a separation
between the logical co-ordinate system and the resolution of rendered
assets.

I didn't include window decorations in the previous wayland scaling
patchset. They were drawn them at a standard resolution, which is
implicitly scaled up.

This uses the Qt scaling, meaning oxygen and breeze (and others) get
perfect high DPI support with zero client changes.

Like the window scaling this handles any combination of a 2x scaled
decoration being rendered on a 1x screen or vice versa.

Test Plan:
export KWIN_COMPOSE=Q
Had two screens of different scales
It was the right size on both (as before)
Was super-sharp on the fancy screen

Reviewers: #plasma, hetzenecker, graesslin

Reviewed By: #plasma, graesslin

Subscribers: ngraham, graesslin, plasma-devel, kwin, #kwin

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D8504

M  +4    -0    decorations/decorationrenderer.cpp
M  +15   -7    plugins/scenes/qpainter/scene_qpainter.cpp

https://commits.kde.org/kwin/7e6721ece08a90c594894eecca7f1cb602646535

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to