Merge lp:~vanvugt/compiz-core/fix-923683 into lp:compiz-core/0.9.5

Proposed by Daniel van Vugt
Status: Merged
Approved by: Sam Spilsbury
Approved revision: 2975
Merged at revision: 2976
Proposed branch: lp:~vanvugt/compiz-core/fix-923683
Merge into: lp:compiz-core/0.9.5
Diff against target: 23 lines (+1/-11)
1 file modified
plugins/move/src/move.cpp (+1/-11)
To merge this branch: bzr merge lp:~vanvugt/compiz-core/fix-923683
Reviewer Review Type Date Requested Status
Alan Griffiths Approve
Review via email: mp+90830@code.launchpad.net

Description of the change

Fix erratic and buggy window movement by reverting to a pure and simple
async model. Avoids feedback loops and all sorts of server/client confusion.
(LP: #923683)

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This feels related to bug 898465 too.

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Any performance issue?

review: Approve
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

This will result in some unpredictable behaviour due to the raceyness of syncPosition and friends, but I'd rather merge it anyways.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/move/src/move.cpp'
2--- plugins/move/src/move.cpp 2012-01-20 14:42:53 +0000
3+++ plugins/move/src/move.cpp 2012-01-31 07:11:25 +0000
4@@ -487,18 +487,8 @@
5 w->move (wX + dx - w->geometry ().x (),
6 wY + dy - w->geometry ().y (), false);
7
8- if (ms->optionGetLazyPositioning () && ms->hasCompositing)
9- {
10- /* FIXME: This form of lazy positioning is broken and should
11- be replaced asap. Current code exists just to avoid a
12- major performance regression in the 0.5.2 release. */
13- w->serverGeometry ().setX (w->geometry ().x ());
14- w->serverGeometry ().setY (w->geometry ().y ());
15- }
16- else
17- {
18+ if (!ms->optionGetLazyPositioning ())
19 w->syncPosition ();
20- }
21
22 ms->x -= dx;
23 ms->y -= dy;

Subscribers

People subscribed via source and target branches