D22295: Remove scene check on repaints

Vlad Zagorodniy <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
zzag added inline comments.

INLINE COMMENTS

> composite.cpp:795
>  {
> -    if (m_state != State::On) {
> +    if (m_state != State::On || compositeTimer.isActive()) {
>          return;

It's a matter of personal taste, but maybe if statements should check only related stuff(i.e. don't inflate conditionals). Whether compositing is active and whether the composite timer is active seem to be unrelated.

Also, this will be a great idea to document when the composite timer condition can be fulfilled.

  if (m_state != State::On) {
      return;
  }
  
  // This if statements checks something completely different, thus it's not
  // merged with the previous if statement.
  if (compositeTimer.isActive()) {
      return;
  }

REPOSITORY
  R108 KWin

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

To: romangg, #kwin
Cc: zzag, kwin, LeGast00n, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, 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.