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 inline comments.

INLINE COMMENTS

> apol wrote in drm_backend.cpp:517
> Because otherwise the window appears like uninitialized in practice, otherwise. This way we make sure that at least once the function is called.
> 
> ::setScale does quite some calls under the hood.

:/ then it sounds like you've uncovered a bug!

From AbstractOutput::setScale:

  m_waylandOutput->setScale(std::ceil(scale));

should work the same if not set

  m_waylandOutputDevice->setScaleF(scale);

should work the same if not set

  m_xdgOutput->setLogicalSize(pixelSize() / m_scale);

really really important to call once, but also called from setWaylandMode looks like it is being called correctly

  emit modeChanged();

Is only emitted here and not in setWaylandMode?? Probably our bug.

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.