aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'java/org/gnu')
-rw-r--r--java/org/gnu/emacs/EmacsWindow.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/java/org/gnu/emacs/EmacsWindow.java b/java/org/gnu/emacs/EmacsWindow.java
index 9d907d2b481..3569d93136b 100644
--- a/java/org/gnu/emacs/EmacsWindow.java
+++ b/java/org/gnu/emacs/EmacsWindow.java
@@ -906,9 +906,16 @@ public final class EmacsWindow extends EmacsHandleObject
906 return true; 906 return true;
907 907
908 case MotionEvent.ACTION_HOVER_EXIT: 908 case MotionEvent.ACTION_HOVER_EXIT:
909 EmacsNative.sendLeaveNotify (this.handle, (int) event.getX (), 909
910 (int) event.getY (), 910 /* If the exit event comes from a button press, its button
911 event.getEventTime ()); 911 state will have extra bits compared to the last known
912 button state. Since the exit event will interfere with
913 tool bar button presses, ignore such splurious events. */
914
915 if ((event.getButtonState () & ~lastButtonState) == 0)
916 EmacsNative.sendLeaveNotify (this.handle, (int) event.getX (),
917 (int) event.getY (),
918 event.getEventTime ());
912 return true; 919 return true;
913 920
914 case MotionEvent.ACTION_BUTTON_PRESS: 921 case MotionEvent.ACTION_BUTTON_PRESS: