commit | a4aa6e1b4c5088cb1886c686b9498f5cbf4eb38f | [log] [tgz] |
---|---|---|
author | Xi Yan <xixiyan@redhat.com> | Mon Dec 17 09:55:13 2018 -0500 |
committer | Xi Yan <xixiyan@redhat.com> | Mon Dec 17 10:51:29 2018 -0500 |
tree | aa8fdf99e2e2a1e31d470bf9c0aca8e1422990ec | |
parent | 0014398aff9405873cf34df013344ed73002c5bb [diff] |
Bug 541635 - [Wayland] Random behaviour when moving editor tabs Remove public non-API field. There is no need to set mouseDown flag in DragEnd as when source.dragEnd is called, we set the mouseDown flag when we send the MouseUp signal. Change-Id: Ifa828bebc759ffafc656b7b414ae090b308533f6 Signed-off-by: Xi Yan <xixiyan@redhat.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java index 8743479..7f6eefe 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
@@ -229,7 +229,6 @@ } static long /*int*/ DragEnd(long /*int*/ widget, long /*int*/ context){ - Control.mouseDown = false; DragSource source = FindDragSource(widget); if (source == null) return 0; source.dragEnd(widget, context);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index b8d0633..13cb4b0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -118,7 +118,7 @@ * Bug 541635, 515396: GTK Wayland only flag to keep track whether mouse * is currently pressed or released for DND. */ - public static boolean mouseDown; + static boolean mouseDown; boolean dragBegun; Control () {