Merge lp:~brandontschaefer/compiz/revert-merge-3891 into lp:compiz/0.9.12

Proposed by Brandon Schaefer
Status: Merged
Approved by: Christopher Townsend
Approved revision: 3907
Merged at revision: 3915
Proposed branch: lp:~brandontschaefer/compiz/revert-merge-3891
Merge into: lp:compiz/0.9.12
Diff against target: 127 lines (+0/-60)
3 files modified
metadata/core.xml.in (+0/-5)
src/privatescreen.h (+0/-17)
src/screen.cpp (+0/-38)
To merge this branch: bzr merge lp:~brandontschaefer/compiz/revert-merge-3891
Reviewer Review Type Date Requested Status
Stephen M. Webb Needs Information
Christopher Townsend (community) Approve
Review via email: mp+243449@code.launchpad.net

Commit message

Rev 3891 change caused 2 known regressions. (Could be more). Reverting.

Description of the change

Rev 3891 change caused 2 known regressions. (Could be more). Reverting.

To post a comment you must log in.
Revision history for this message
Christopher Townsend (townsend) wrote :

Yes, this needs to be reverted due to regressions.

review: Approve
Revision history for this message
Stephen M. Webb (bregma) :
review: Needs Information

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'metadata/core.xml.in'
2--- metadata/core.xml.in 2014-10-02 15:56:29 +0000
3+++ metadata/core.xml.in 2014-12-02 19:48:38 +0000
4@@ -141,11 +141,6 @@
5 <_long>Focus prevention windows</_long>
6 <default>any</default>
7 </option>
8- <option type="bool" name="remember_vp_focus">
9- <_short>Remember Focus</_short>
10- <_long>Remember Focus Per Workspace</_long>
11- <default>true</default>
12- </option>
13 </group>
14 <group>
15 <_short>Key bindings</_short>
16
17=== modified file 'src/privatescreen.h'
18--- src/privatescreen.h 2014-10-02 15:56:29 +0000
19+++ src/privatescreen.h 2014-12-02 19:48:38 +0000
20@@ -47,7 +47,6 @@
21
22 #include "core_options.h"
23
24-#include <map>
25 #include <set>
26
27 CompPlugin::VTable * getCoreVTable ();
28@@ -90,17 +89,6 @@
29 unsigned int viewportY;
30 };
31
32-// to allow using CompPoint as std::map keys
33-struct PointCompare
34-{
35- bool operator () (const CompPoint& p1, const CompPoint& p2)
36- {
37- if (p1.x () == p2.x ())
38- return p1.y () < p2.y ();
39- return p1.x () < p2.x ();
40- }
41-};
42-
43 namespace compiz
44 {
45 namespace core
46@@ -1177,9 +1165,6 @@
47
48 bool handlePingTimeout();
49
50- void saveViewportFocus ();
51- CompWindow * findViewportFocusCandidate ();
52-
53 Window below;
54 CompTimer autoRaiseTimer_;
55 Window autoRaiseWindow_;
56@@ -1190,8 +1175,6 @@
57 PrivateScreen privateScreen;
58 compiz::private_screen::WindowManager windowManager;
59 unsigned int showingDesktopMask_;
60- typedef std::map<CompPoint, Window, PointCompare> FocusMap;
61- FocusMap savedViewportFocus;
62 };
63
64 #endif
65
66=== modified file 'src/screen.cpp'
67--- src/screen.cpp 2014-10-03 10:14:50 +0000
68+++ src/screen.cpp 2014-12-02 19:48:38 +0000
69@@ -2688,11 +2688,6 @@
70 }
71 }
72 }
73- else
74- {
75- // check if there was a focused window stored
76- focus = findViewportFocusCandidate ();
77- }
78
79 if (!focus)
80 {
81@@ -3789,8 +3784,6 @@
82 if (!tx && !ty)
83 return;
84
85- saveViewportFocus ();
86-
87 privateScreen.viewPort.vp.setX (privateScreen.viewPort.vp.x () + tx);
88 privateScreen.viewPort.vp.setY (privateScreen.viewPort.vp.y () + ty);
89
90@@ -5162,37 +5155,6 @@
91 return true;
92 }
93
94-void
95-CompScreenImpl::saveViewportFocus ()
96-{
97- if ((privateScreen.optionGetHsize () > 1 || privateScreen.optionGetVsize () > 1) &&
98- privateScreen.optionGetRememberVpFocus ())
99- {
100- Window id = activeWindow ();
101- if (id != None)
102- {
103- savedViewportFocus[privateScreen.viewPort.vp] = id;
104- }
105- }
106-}
107-
108-CompWindow *
109-CompScreenImpl::findViewportFocusCandidate ()
110-{
111- if ((privateScreen.optionGetHsize () > 1 || privateScreen.optionGetVsize () > 1) &&
112- privateScreen.optionGetRememberVpFocus ())
113- {
114- FocusMap::iterator it = savedViewportFocus.find (privateScreen.viewPort.vp);
115- if (it != savedViewportFocus.end ())
116- {
117- Window id = it->second;
118- savedViewportFocus.erase (it);
119- return findWindow (id);
120- }
121- }
122- return NULL;
123-}
124-
125 CompScreenImpl::~CompScreenImpl ()
126 {
127 privateScreen.startupSequence.removeAllSequences ();

Subscribers

People subscribed via source and target branches