Merge lp:~azzar1/compiz/mru-logic-focusDefaultWindow into lp:compiz/0.9.13

Proposed by Andrea Azzarone
Status: Merged
Approved by: Marco Trevisan (Treviño)
Approved revision: 4072
Merged at revision: 4083
Proposed branch: lp:~azzar1/compiz/mru-logic-focusDefaultWindow
Merge into: lp:compiz/0.9.13
Diff against target: 31 lines (+1/-14)
1 file modified
src/screen.cpp (+1/-14)
To merge this branch: bzr merge lp:~azzar1/compiz/mru-logic-focusDefaultWindow
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) Approve
Review via email: mp+301379@code.launchpad.net

Commit message

focusDefaultWindow: focus Most Recently Used (MRU) window and fallback to the top window in case MRU list is not available.

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Ack

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/screen.cpp'
2--- src/screen.cpp 2016-05-17 02:52:07 +0000
3+++ src/screen.cpp 2016-07-28 13:47:30 +0000
4@@ -2782,26 +2782,13 @@
5 CompWindowTypeDialogMask |
6 CompWindowTypeModalDialogMask))
7 {
8- if (!privateScreen.optionGetClickToFocus ())
9- {
10- /* We should favor the more active window in the mouse focus
11- * case since the user does not care if the focused window is on top */
12- if (PrivateWindow::compareWindowActiveness (focus, w) < 0)
13- focus = w;
14- }
15- else
16- {
17+ if (PrivateWindow::compareWindowActiveness (focus, w) < 0)
18 focus = w;
19- break;
20- }
21 }
22 }
23 else
24 {
25 focus = w;
26-
27- if (privateScreen.optionGetClickToFocus ())
28- break;
29 }
30 }
31 }

Subscribers

People subscribed via source and target branches