Skip to content

Commit 009cc55

Browse files
author
Thomas Singer
committed
Control.gtk_motion_notify_event: fix formatting
to easier understand it
1 parent a9598b8 commit 009cc55

File tree

1 file changed

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

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4159,9 +4159,9 @@ long gtk_motion_notify_event (long widget, long event) {
41594159
if ((dragDetectionQueue != null) && OS.isWayland()) {
41604160
boolean dragging = false;
41614161
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;
4162+
boolean [] consume = new boolean [1];
4163+
if (dragDetect ((int) eventX[0], (int) eventY[0], true, true, consume)) {
4164+
dragging = true;
41654165
if (isDisposed ()) return 1;
41664166
}
41674167
}
@@ -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)