altosuilib: InputEvent.getModifiers is deprecated, use getModifiersEx
authorKeith Packard <keithp@keithp.com>
Sun, 7 Oct 2018 17:02:26 +0000 (10:02 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 7 Oct 2018 17:02:26 +0000 (10:02 -0700)
Some java change; seems like it's a no-op for us.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUIMap.java

index 7f114e3745a3b915208dd4740b9f5ba8dbe5afc7..7b9459a128068adabce4501d2c84ee06573df983 100644 (file)
@@ -106,7 +106,7 @@ public class AltosUIMap extends JComponent implements AltosFlightDisplay, AltosM
                }
 
                private boolean is_drag_event(MouseEvent e) {
-                       return e.getModifiers() == InputEvent.BUTTON1_MASK;
+                       return e.getModifiersEx() == InputEvent.BUTTON1_DOWN_MASK;
                }
 
                /* MouseMotionListener methods */