1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

Bug 405735 - [visualizer] Using context menu prevents next selection

Change-Id: Iedf7ddedcd5a714bbd7a81650adacb4a301225b8
Reviewed-on: https://git.eclipse.org/r/12237
Reviewed-by: William Swanson <traveler@tilera.com>
IP-Clean: William Swanson <traveler@tilera.com>
Tested-by: William Swanson <traveler@tilera.com>
This commit is contained in:
Marc Dumais 2013-04-26 11:12:39 -04:00 committed by William Swanson
parent 12b229dec0
commit cadc92f7b6

View file

@ -7,6 +7,7 @@
*
* Contributors:
* William R. Swanson (Tilera Corporation) - initial API and implementation
* Marc Dumais (Ericsson) : Bug 405735
*******************************************************************************/
package org.eclipse.cdt.visualizer.ui.util;
@ -250,7 +251,8 @@ public class MouseMonitor
/** Invoked when mouse button is pressed */
protected void mouseDownHandler(int button, int x, int y, int keys) {
if (! m_mouseDown) {
// Drag not applicable to right-click
if (! m_mouseDown && button != RIGHT_BUTTON) {
m_mouseDown = true;
m_mouseDownPoint.x = x;
m_mouseDownPoint.y = y;