D23521: Traverse the stacking order backwards when switching between windows

Vlad Zagorodniy noreply at phabricator.kde.org
Wed Aug 28 09:56:16 BST 2019


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
  In order to pick the next client to activate we traverse the stacking
  order from bottom to top and assign to each client a score. The client
  with the best score will be activated next. Function that assigns score
  bases its decisions purely on geometry. This may backfire if there are
  couple maximized or fullscreen clients on the screen - we'll activate
  the bottom-most client.
  
  This change toggles direction we traverse the stacking order. If there
  are several clients with an identical score, then prefer the top-most
  client, the one that the user most likely sees at the moment.
  
  BUG: 411356

REPOSITORY
  R108 KWin

BRANCH
  switch-to-prefer-topmost

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

AFFECTED FILES
  useractions.cpp

To: zzag, #kwin
Cc: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20190828/dc694ca0/attachment.html>


More information about the kwin mailing list