D3159: Set wayland output scale

2017-04-29 Thread David Edmundson
This revision was automatically updated to reflect the committed changes. Closed by commit R108:fd58c68ba5a4: Set wayland output scale (authored by davidedmundson). REPOSITORY R108 KWin CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D3159?vs=8501&id=13964 REVISION DETAIL https://ph

D3159: Set wayland output scale

2017-03-31 Thread David Edmundson
davidedmundson added a dependency: D3498: Add scaling to DRM backend. REPOSITORY R108 KWin REVISION DETAIL https://phabricator.kde.org/D3159 To: davidedmundson, graesslin, #plasma Cc: broulik, graesslin, plasma-devel, kwin, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas,

[Differential] [Updated, 68 lines] D3159: Set wayland output scale

2016-11-25 Thread davidedmundson (David Edmundson)
davidedmundson updated this revision to Diff 8501. davidedmundson added a comment. Restricted Application edited projects, added Plasma; removed KWin. Add a scale method to the backends and proxy this to wl_output Also add a --scale argument for testing REPOSITORY rKWIN KWin CHANGES SI

[Differential] [Commented On] D3159: Set wayland output scale

2016-11-14 Thread Martin Gräßlin
graesslin added inline comments. INLINE COMMENTS > x11windowed_backend.cpp:201-205 > +//generally we don't need to normalise input to the output > scale; however because we're getting input > +//from a host window that doesn't understand scaling, we need to > apply it ou

[Differential] [Updated, 113 lines] D3159: Set wayland output scale

2016-11-07 Thread davidedmundson (David Edmundson)
davidedmundson updated this revision to Diff 7989. davidedmundson marked 4 inline comments as done. davidedmundson added a comment. Restricted Application edited projects, added KWin; removed Plasma. - Squash with input scaling - Squash with client size surface normal commit - hopefully fix

[Differential] [Commented On] D3159: Set wayland output scale

2016-11-07 Thread davidedmundson (David Edmundson)
davidedmundson added inline comments. INLINE COMMENTS > graesslin wrote in scene_qpainter.cpp:311-313 > ah so that's basically the "scale everything up" if output has a scale, but > not yet the "surface has a scale of 2"? What this code is doing is painting in output normalised space; no matter

[Differential] [Commented On] D3159: Set wayland output scale

2016-11-07 Thread Martin Gräßlin
graesslin added inline comments. INLINE COMMENTS > davidedmundson wrote in scene_qpainter.cpp:311-313 > I'm harnassing QPainter's internal scaling. > > The old code: > > painter->drawImage(toplevel->clientPos(), >pixmap->image(), >

[Differential] [Commented On] D3159: Set wayland output scale

2016-11-07 Thread davidedmundson (David Edmundson)
davidedmundson added inline comments. INLINE COMMENTS > graesslin wrote in scene_qpainter.cpp:311-313 > I don't understand how the scaling comes in here? I'm harnassing QPainter's internal scaling. The old code: painter->drawImage(toplevel->clientPos(), pix

[Differential] [Updated, 106 lines] D3159: Set wayland output scale

2016-11-07 Thread davidedmundson (David Edmundson)
davidedmundson updated this revision to Diff 7966. davidedmundson added a comment. Restricted Application edited projects, added Plasma; removed KWin. WIP: high DPI scaling support in kwin. Surface events are all normalised by surface_scale Output is normalised to output_scale From

[Differential] [Accepted] D3159: Set wayland output scale

2016-10-27 Thread Martin Gräßlin
graesslin accepted this revision. graesslin added a reviewer: graesslin. This revision is now accepted and ready to land. REPOSITORY rKWIN KWin BRANCH master REVISION DETAIL https://phabricator.kde.org/D3159 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/

[Differential] [Updated, 68 lines] D3159: Set wayland output scale

2016-10-26 Thread davidedmundson (David Edmundson)
davidedmundson updated this revision to Diff 7677. davidedmundson added a comment. Restricted Application edited projects, added KWin; removed Plasma. qvector::fill REPOSITORY rKWIN KWin CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D3159?vs=7666&id=7677 BRANCH master REVISION

[Differential] [Changed Subscribers] D3159: Set wayland output scale

2016-10-26 Thread broulik (Kai Uwe Broulik)
broulik added inline comments. INLINE COMMENTS > x11windowed_backend.cpp:477-480 > +QVector ret; > +for (auto it = m_windows.constBegin(); it != m_windows.constEnd(); ++it) > { > +ret << initialOutputScale(); > +} QVector &QVector::fill(const T &value, int size = -1) Assign

[Differential] [Updated, 70 lines] D3159: Set wayland output scale

2016-10-26 Thread davidedmundson (David Edmundson)
davidedmundson updated this revision to Diff 7666. davidedmundson marked 3 inline comments as done. davidedmundson added a comment. Restricted Application edited projects, added Plasma; removed KWin. int -> real REPOSITORY rKWIN KWin CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D

[Differential] [Commented On] D3159: Set wayland output scale

2016-10-26 Thread davidedmundson (David Edmundson)
davidedmundson added inline comments. INLINE COMMENTS > graesslin wrote in main_wayland.cpp:638 > hmm I'm not sure whether we should implement it as an int factor. Even if > Wayland only supports integer scaling, I think that's a bad idea and we > should rather go with fractal scaling from the

[Differential] [Commented On] D3159: Set wayland output scale

2016-10-26 Thread Martin Gräßlin
graesslin added a comment. I suggest to also implement in the virtual platform in order to be able to auto-test it. INLINE COMMENTS > main_wayland.cpp:528 > +i18n("The scale for windowed mode. > Default value is 1."), > +

[Differential] [Request, 70 lines] D3159: Set wayland output scale

2016-10-25 Thread davidedmundson (David Edmundson)
davidedmundson created this revision. davidedmundson added a reviewer: Plasma. Restricted Application added a project: KWin. Restricted Application added subscribers: kwin, plasma-devel. REVISION SUMMARY Provides a virtual method in Screens where backends can supply the scale of each screen, t