D20521: Don't rescale every output every time outputs change

David Edmundson <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
davidedmundson added a comment.


  concept makes sense ++
  One question below.

INLINE COMMENTS

> drm_backend.cpp:517
>          // TODO: add mode
> -        (*it)->setScale(outputConfig.readEntry("Scale", 1.0));
> +        if (outputConfig.hasKey("Scale") || (*it)->scale() == 0)
> +            (*it)->setScale(outputConfig.readEntry("Scale", 1.0));

If we have the hasKey() check, then I don't understand why we also need to use a 0 as a special value for defining unset.

REPOSITORY
  R108 KWin

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

To: apol, #plasma
Cc: davidedmundson, ngraham, kwin, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, alexeymin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.