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

Reply via email to