<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/D23521">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In order to pick the next client to activate we traverse the stacking<br />
order from bottom to top and assign to each client a score. The client<br />
with the best score will be activated next. Function that assigns score<br />
bases its decisions purely on geometry. This may backfire if there are<br />
couple maximized or fullscreen clients on the screen - we'll activate<br />
the bottom-most client.</p>
<p>This change toggles direction we traverse the stacking order. If there<br />
are several clients with an identical score, then prefer the top-most<br />
client, the one that the user most likely sees at the moment.</p>
<p>BUG: 411356</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>switch-to-prefer-topmost</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23521">https://phabricator.kde.org/D23521</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>useractions.cpp</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, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, mart<br /></div>