Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 332613 | Differences between
and this patch

Collapse All | Expand All

(-)kicad/common/drawpanel.cpp (+17 lines)
Lines 27-33 Link Here
27
#define DEBUG_SHOW_CLIP_RECT       0  // Set to 1 to draw clipping rectangle.
27
#define DEBUG_SHOW_CLIP_RECT       0  // Set to 1 to draw clipping rectangle.
28
#define DEBUG_DUMP_CLIP_COORDS     0  // Set to 1 to dump clipping rectangle coordinates.
28
#define DEBUG_DUMP_CLIP_COORDS     0  // Set to 1 to dump clipping rectangle coordinates.
29
#define DEBUG_DUMP_SCROLL_SETTINGS 0  // Set to 1 to dump scroll settings.
29
#define DEBUG_DUMP_SCROLL_SETTINGS 0  // Set to 1 to dump scroll settings.
30
#define DEBUG_BLOCKS               0  // Set to 1 to dump block information
30
31
32
/* Definitions for workarounds in drawpanel.cpp */
33
#define FLUXBOX_WORKAROUND         1  // Set to 1 to enable group/block actions on fluxbox, windowmaker, fvwm and probably others
34
                                      // with this, we ignore mouse entering events if the left button is pressed
31
35
32
/* Used to inhibit a response to a mouse left button release, after a
36
/* Used to inhibit a response to a mouse left button release, after a
33
 * double click (when releasing the left button at the end of the second
37
 * double click (when releasing the left button at the end of the second
Lines 1042-1049 void WinEDA_DrawPanel::OnMouseEvent( wxM Link Here
1042
     * MIN_DRAG_COUNT_FOR_START_BLOCK_COMMAND in order to avoid spurious block
1046
     * MIN_DRAG_COUNT_FOR_START_BLOCK_COMMAND in order to avoid spurious block
1043
     * commands. */
1047
     * commands. */
1044
    static int MinDragEventCount;
1048
    static int MinDragEventCount;
1049
#if DEBUG_BLOCKS
1050
        std::cout << "Left button pressed: " << event.LeftDown() << " Middle button pressed: " << event.MiddleDown() << std::endl
1051
                << "Left button down: " << event.LeftIsDown() << "Middle Button down: " << event.MiddleIsDown() << std::endl
1052
                << "event.Leaving: " << event.Leaving() << " event.Entering:" << event.Entering() << " Can start block: " << m_CanStartBlock << std::endl << std::endl;
1053
#endif
1045
    if( event.Leaving() || event.Entering() )
1054
    if( event.Leaving() || event.Entering() )
1046
    {
1055
    {
1056
#if FLUXBOX_WORKAROUND
1057
        // when using fluxbox (and probably windowmaker, fwvm) we get two events on a mouse left click. Ignore the entering event in this case.
1058
        // (there won't be an event on entering until we release the left mouse button anyway)
1059
        if(event.LeftIsDown())
1060
        {
1061
            return;
1062
        }
1063
#endif
1047
        m_CanStartBlock = -1;
1064
        m_CanStartBlock = -1;
1048
    }
1065
    }
1049
1066

Return to bug 332613