Skip to content

Commit d8dfeb3

Browse files
author
Thomas Singer
committed
Control.gtk_motion_notify_event: fix formatting
to easier understand it
1 parent f6fcbde commit d8dfeb3

File tree

1 file changed

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

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4158,11 +4158,11 @@ long gtk_motion_notify_event (long widget, long event) {
41584158
// See comment in #dragDetect()
41594159
if ((dragDetectionQueue != null) && OS.isWayland()) {
41604160
boolean dragging = false;
4161-
if ((state & DRAG_DETECT) != 0 && wantDragDropDetection ()) {
4162-
boolean [] consume = new boolean [1];
4163-
if (dragDetect ((int) eventX[0], (int) eventY[0], true, true, consume)) {
4164-
dragging = true;
4165-
if (isDisposed ()) return 1;
4161+
if ((state & DRAG_DETECT) != 0 && wantDragDropDetection()) {
4162+
boolean[] consume = new boolean[1];
4163+
if (dragDetect((int)eventX[0], (int)eventY[0], true, true, consume)) {
4164+
dragging = true;
4165+
if (isDisposed()) return 1;
41664166
}
41674167
}
41684168
if (dragging) {
@@ -4182,7 +4182,7 @@ long gtk_motion_notify_event (long widget, long event) {
41824182
GDK.gdk_event_get_state(event, eventState);
41834183
}
41844184

4185-
if (sendDragEvent (eventButton[0], eventState[0], scaledEvent.x, scaledEvent.y, false)){
4185+
if (sendDragEvent (eventButton[0], eventState[0], scaledEvent.x, scaledEvent.y, false)) {
41864186
return 1;
41874187
}
41884188
}
@@ -4235,7 +4235,8 @@ long gtk_motion_notify_event (long widget, long event) {
42354235
}
42364236
}
42374237

4238-
return sendMouseEvent(SWT.MouseMove, 0, time, x, y, isHint, state[0]) ? 0 : 1;
4238+
return sendMouseEvent(SWT.MouseMove, 0, time, x, y, isHint, state[0])
4239+
? 0 : 1;
42394240
}
42404241

42414242
@Override

0 commit comments

Comments
 (0)