Re: [compiz] Using vpswitch with wall in 0.9

2010-06-09 Thread Sam Spilsbury
On Thu, Jun 10, 2010 at 11:23 AM, Jay Catherwood
 wrote:
> Hi,
>
> Vpswitch's "Go to specific viewport" commands don't currently work for me in
> 0.9. This patch fixes the problem for me.
>

Fix pushed, thanks,

> Thanks,
> Jay
> ___
> compiz mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/compiz
>
>



-- 
Sam Spilsbury
___
compiz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/compiz


[compiz] Using vpswitch with wall in 0.9

2010-06-09 Thread Jay Catherwood
Hi,

Vpswitch's "Go to specific viewport" commands don't currently work for me in
0.9. This patch fixes the problem for me.

Thanks,
Jay
diff --git a/src/vpswitch.cpp b/src/vpswitch.cpp
index ab4247e..fafec77 100644
--- a/src/vpswitch.cpp
+++ b/src/vpswitch.cpp
@@ -279,7 +279,7 @@ VPSwitchScreen::terminateNumbered (CompAction *action,
 	return false;
 
 nx = (destination - 1 ) % vpsize.width ();
-ny = (destination - 1 ) / vpsize.height ();
+ny = (destination - 1 ) / vpsize.width ();
 
 gotovp (nx, ny);
 
@@ -297,6 +297,7 @@ VPSwitchScreen::switchto (CompAction *action,
 
 destination = num;
 
+numberedActive = true;
 return terminateNumbered (action, state, options);
 }
 
___
compiz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/compiz