GNOME Bugzilla – Bug 676371
shell-app: Raise windows in reverse order to preserve the stacking
Last modified: 2012-05-19 20:05:35 UTC
ShellApp keeps track of windows sorted by most recently used first which means that when raising windows we need to start from the end of the list to finish with the correct stacking order. This patch just makes the code agree with the comment which was already there.
Created attachment 214443 [details] [review] shell-app: Raise windows in reverse order to preserve the stacking
Review of attachment 214443 [details] [review]: uhhh So you're telling me that we did this wrong all along? I don't believe you.
(In reply to comment #2) > So you're telling me that we did this wrong all along? I don't believe you. This has actually bugged me since forever but only today was I really annoyed enough to dig in and fix it :-) To test it try this: 1. In an empty workspace open 3 terminal windows A, B, C and some other app; 2. Arrange them so that the stacking is clearly visible to you; 3. Focus each one of the terminal windows in turn by clicking on each in the order A, B, C; 4. Alt+Tab into the other app; 5. Alt+Tab back to the terminal app; 6. You should see the terminal windows stacked like (from top to bottom) C, A, B. This patch makes it stack correctly at the end like C, B, A.
Review of attachment 214443 [details] [review]: Sure, then.
Attachment 214443 [details] pushed as b61ada7 - shell-app: Raise windows in reverse order to preserve the stacking