D24244: Use lambdas for queued invocation of composition suspending

Vlad Zahorodnii noreply at phabricator.kde.org
Thu Sep 26 15:46:53 BST 2019


zzag accepted this revision.
zzag added inline comments.
This revision is now accepted and ready to land.

INLINE COMMENTS

> composite.cpp:1017-1019
> +                QMetaObject::invokeMethod(this, [this]() {
> +                        suspend(BlockRuleSuspend);
> +                    }, Qt::QueuedConnection);

It'll be more compact with QTimer::singleShot.

  QTimer::singleShot(0, this, [this]() { suspend(BlockRuleSuspend); });

I don't have strong opinion about this though.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20190926/c4d8f919/attachment.html>


More information about the kwin mailing list