<table><tr><td style="">zzag created this revision.<br />zzag added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />zzag requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D24950">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Qt has its own thing where a type might also have corresponding list<br />
alias, e.g. QObject and QObjectList, QWidget and QWidgetList. I don't<br />
know why Qt does that, maybe for some historical reasons, but what<br />
matters is that we copy this pattern here in KWin. While this pattern<br />
might be useful with some long list types, for example</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">QList<QWeakPointer<TabBoxClient>> TabBoxClientList</pre></div>
<p>in general, it causes more harm than good. For example, we've got two<br />
new client types, do we need corresponding list typedefs for them? If<br />
no, why do we have ClientList and so on?</p>
<p>Another problem with these typedefs is that you need to include utils.h<br />
header in order to use them. A better way to handle such things is to<br />
just forward declare a client class (if that's possible) and use it<br />
directly with QList or QVector. This way translation units don't get<br />
"bloated" with utils.h stuff for no apparent reason.</p>
<p>So, in order to make code more consistent and easier to follow, this<br />
change drops some of our custom typedefs. Namely ConstClientList,<br />
ClientList, DeletedList, UnmanagedList, ToplevelList, and GroupList.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Compiles.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>drop-custom-list-aliases</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24950">https://phabricator.kde.org/D24950</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>abstract_client.cpp<br />
activation.cpp<br />
activities.cpp<br />
autotests/integration/activation_test.cpp<br />
autotests/integration/stacking_order_test.cpp<br />
composite.cpp<br />
deleted.h<br />
effects.cpp<br />
geometry.cpp<br />
group.cpp<br />
group.h<br />
input.cpp<br />
keyboard_input.cpp<br />
layers.cpp<br />
placement.cpp<br />
plugins/scenes/opengl/scene_opengl.cpp<br />
plugins/scenes/opengl/scene_opengl.h<br />
plugins/scenes/qpainter/scene_qpainter.cpp<br />
plugins/scenes/qpainter/scene_qpainter.h<br />
plugins/scenes/xrender/scene_xrender.cpp<br />
plugins/scenes/xrender/scene_xrender.h<br />
scene.cpp<br />
scene.h<br />
scripting/scripting_model.cpp<br />
sm.cpp<br />
tabbox/tabbox.cpp<br />
toplevel.cpp<br />
toplevel.h<br />
useractions.cpp<br />
utils.h<br />
workspace.cpp<br />
workspace.h<br />
x11client.cpp<br />
x11client.h</div></div></div><br /><div><strong>To: </strong>zzag, KWin<br /><strong>Cc: </strong>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, ahiemstra, mart<br /></div>