Skip to content

Commit d383295

Browse files
author
Thomas Singer
committed
Control.gtk_motion_notify_event: format to understand it
remove unused code (setting result)
1 parent 48e5878 commit d383295

File tree

1 file changed

+7
-7
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

1 file changed

+7
-7
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4156,13 +4156,13 @@ long gtk_motion_notify_event (long widget, long event) {
41564156
// See comment in #dragDetect()
41574157
if ((dragDetectionQueue != null) && OS.isWayland()) {
41584158
boolean dragging = false;
4159-
if ((state & DRAG_DETECT) != 0 && wantDragDropDetection ()) {
4160-
boolean [] consume = new boolean [1];
4161-
if (dragDetect ((int) eventX[0], (int) eventY[0], true, true, consume)) {
4162-
dragging = true;
4163-
if (consume [0]) result = 1;
4164-
if (isDisposed ()) return 1;
4165-
} else {
4159+
if ((state & DRAG_DETECT) != 0 && wantDragDropDetection()) {
4160+
boolean[] consume = new boolean[1];
4161+
if (dragDetect((int)eventX[0], (int)eventY[0], true, true, consume)) {
4162+
dragging = true;
4163+
if (isDisposed()) {
4164+
return 1;
4165+
}
41664166
}
41674167
}
41684168
if (dragging) {

0 commit comments

Comments
 (0)