← Back to team overview

kicad-developers team mailing list archive

Re: Group selection not working with fluxbox, windowmaker (patch included)

 

On 08/13/2010 08:52 AM, Heiko Rosemann wrote:
> --- kicad/common/drawpanel.cpp	2010-08-13 15:15:02.000000000 +0200
> +++ kicad_new/common/drawpanel.cpp	2010-08-13 15:04:14.000000000 +0200
> @@ -1147,7 +1164,7 @@ void WinEDA_DrawPanel::OnMouseEvent( wxM
>          s_IgnoreNextLeftButtonRelease = false;
>      }
>  
> -    if( event.ButtonUp( 2 )
> +    if( event.ButtonUp( wxMOUSE_BTN_MIDDLE )
>         && (screen->m_BlockLocate.m_State == STATE_NO_BLOCK) )
>      {
>          // The middle button has been released, with no block command:
> @@ -1250,7 +1267,7 @@ void WinEDA_DrawPanel::OnMouseEvent( wxM
>              }
>          }
>  
> -        if( event.ButtonUp( 1 ) || event.ButtonUp( 2 ) )
> +        if( event.ButtonUp( wxMOUSE_BTN_LEFT ) || event.ButtonUp( wxMOUSE_BTN_MIDDLE ) )
>          {
>              /* Release the mouse button: end of block.
>               * The command can finish (DELETE) or have a next command (MOVE,
>   
>   

Committed in revision 2464, but only the patch shown above.

Please attach only one patch per email posting in the future.


Dick




References