Comment 18 for bug 754948

Revision history for this message
fguille (ftj-guillemot) wrote :

I've succeded in patching Natty compiz 0.9.4 in order to have edge+mouse button binding work again.
However, something I couldn't fix yet : if top left+left click is Expose, clicking again doesn't exit Expose. Same for Scale. I can live with it however and will thus keep Natty.
Here is the 1 line patch in context diff (don't ask me why it works) :
diff -cr compiz-0.9.4+bzr20110415/src/event.cpp compiz-0.9.4+bzr20110415.fguille/src/event.cpp
*** compiz-0.9.4+bzr20110415/src/event.cpp 2011-04-15 11:01:04.000000000 +0200
--- compiz-0.9.4+bzr20110415.fguille/src/event.cpp 2011-05-21 10:51:47.839203285 +0200
***************
*** 155,163 ****

   if (event->window != priv->edgeWindow)
   {
! if (grabs.empty () || event->window != root)
! return false;
! }

   for (i = 0; i < SCREEN_EDGE_NUM; i++)
   {
--- 155,163 ----

   if (event->window != priv->edgeWindow)
   {
! if (!priv->grabs.empty () || event->window != root)
! return false;
! }

   for (i = 0; i < SCREEN_EDGE_NUM; i++)
   {