D26541: Use less Toplevel::isClient()

Vlad Zahorodnii noreply at phabricator.kde.org
Thu Jan 9 12:25:54 GMT 2020


zzag created this revision.
zzag added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
zzag requested review of this revision.

REVISION SUMMARY
  Prefer qobject_cast<> over Toplevel::isClient() because it's more type
  safer and makes code a bit more readable.
  
  Hopefully, one day we will be able to get rid of isClient() altogether.

TEST PLAN
  Compiles.

REPOSITORY
  R108 KWin

BRANCH
  dont-use-toplevel-is-client

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

AFFECTED FILES
  layers.cpp
  plugins/scenes/qpainter/scene_qpainter.cpp

To: zzag, #kwin
Cc: kwin, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20200109/c32ab5c3/attachment.html>


More information about the kwin mailing list