D12151: Position output identifiers with respect to scaling factors

David Edmundson noreply at phabricator.kde.org
Thu Apr 12 17:29:43 UTC 2018


davidedmundson requested changes to this revision.
davidedmundson added a comment.
This revision now requires changes to proceed.


  > Is it maybe not necessary at all on Wayland to respect the output scaling factors for the placement?
  
  It is not necessary to do anything with scaling on wayland. All placement is in logical co-ordinates rather than device co-ordinates. Leave it alone and it will work.

INLINE COMMENTS

> widget.cpp:476
> +        if (config->supportedFeatures() & KScreen::Config::Feature::PerOutputScaling) {
> +            scaledSize = realSize / output->scale();
> +        } else {

you don't need this

> widget.cpp:478
> +        } else {
> +            scaledSize = realSize / devicePixelRatioF();
> +        }

Avoid the term scaled.

It could mean scaled from device -> logical, it could be scaled from logical->device. 
It's a name that ends up telling you nothing. Use one of the other two terms

REPOSITORY
  R104 KScreen

REVISION DETAIL
  https://phabricator.kde.org/D12151

To: romangg, davidedmundson, broulik
Cc: plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180412/f9dcea1d/attachment.html>


More information about the Plasma-devel mailing list