Merge lp:~hikiko/compiz/compiz.fix-811591 into lp:compiz/0.9.12

Proposed by Eleni Maria Stea
Status: Work in progress
Proposed branch: lp:~hikiko/compiz/compiz.fix-811591
Merge into: lp:compiz/0.9.12
Diff against target: 23 lines (+0/-10)
1 file modified
plugins/put/src/put.cpp (+0/-10)
To merge this branch: bzr merge lp:~hikiko/compiz/compiz.fix-811591
Reviewer Review Type Date Requested Status
Andrea Azzarone Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Marco Trevisan (Treviño) Pending
Unity Team Pending
Review via email: mp+272359@code.launchpad.net

Commit message

Fix for put plugin.

Description of the change

Fix for put plugin.

To post a comment you must log in.
lp:~hikiko/compiz/compiz.fix-811591 updated
3979. By Eleni Maria Stea

removed comment

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Andrea Azzarone (azzar1) wrote :

It works now but the two comments are now invalid
/* take the shortest horizontal path to the destination viewport */

and the other one as well:
/* we need to do this for the vertical destination viewport too */

Right?

review: Needs Fixing
Revision history for this message
Andrea Azzarone (azzar1) wrote :

Ops actually the problem is still there. I'm using multimunitor with 9 workspaces sending a termianl window from 1 to 8.

review: Needs Fixing
Revision history for this message
Eleni Maria Stea (hikiko) wrote :

I forgot to test in multimonitor :/ In progress...

lp:~hikiko/compiz/compiz.fix-811591 updated
3980. By Eleni Maria Stea

removed irrelevant comments

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

No worries, I think you can keep this in hold, since put plugin is not relevant for unity.

Revision history for this message
Eleni Maria Stea (hikiko) wrote :

+1

Unmerged revisions

3980. By Eleni Maria Stea

removed irrelevant comments

3979. By Eleni Maria Stea

removed comment

3978. By Eleni Maria Stea

fixes bug: #811591 solution proposed by Sam Spilsbury here:
https://bugs.launchpad.net/compiz/+bug/811591

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plugins/put/src/put.cpp'
--- plugins/put/src/put.cpp 2013-05-11 14:06:54 +0000
+++ plugins/put/src/put.cpp 2015-10-07 06:15:10 +0000
@@ -599,19 +599,9 @@
599 if (vpY > (int) s->vpSize ().height ())599 if (vpY > (int) s->vpSize ().height ())
600 vpY = s->vpSize ().height () - 1;600 vpY = s->vpSize ().height () - 1;
601601
602 /* take the shortest horizontal path to the destination viewport */
603 hDirection = (vpX - s->vp ().x ());602 hDirection = (vpX - s->vp ().x ());
604 if (hDirection > (int) s->vpSize ().width () / 2)
605 hDirection = (hDirection - s->vpSize ().width ());
606 else if (hDirection < - ((int) s->vpSize ().width ()) / 2)
607 hDirection = (hDirection + s->vpSize ().width ());
608603
609 /* we need to do this for the vertical destination viewport too */
610 vDirection = (vpY - s->vp ().y ());604 vDirection = (vpY - s->vp ().y ());
611 if (vDirection > (int) s->vpSize ().height () / 2)
612 vDirection = (vDirection - s->vpSize ().height ());
613 else if (vDirection < -((int) s->vpSize ().height ()) / 2)
614 vDirection = (vDirection + s->vpSize ().height ());
615605
616 dx = s->width () * hDirection;606 dx = s->width () * hDirection;
617 dy = s->height () * vDirection;607 dy = s->height () * vDirection;

Subscribers

People subscribed via source and target branches