D24244: Use lambdas for queued invocation of composition suspending

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

INLINE COMMENTS

> zzag wrote in composite.cpp:1017-1019
> It'll be more compact with QTimer::singleShot.
> 
>   QTimer::singleShot(0, this, [this]() { suspend(BlockRuleSuspend); });
> 
> I don't have strong opinion about this though.

Yeah, I typically use QTimer out of habit, though I've seen comments saying to use QMetaObject for semantic reasons.

They end up being exactly the same thing, I don't think either is better or worse.

REPOSITORY
  R108 KWin

BRANCH
  master

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

To: davidedmundson, #kwin, zzag
Cc: zzag, kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, 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.