gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Discard GDK_ENTER_NOTIFY related to ungrabs.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler): Discard GDK_ENTER_NOTIFY related to ungrabs. From-SVN: r75999
This commit is contained in:
parent
da1c22e144
commit
2f9c39f8fc
@ -1,3 +1,8 @@
|
||||
2004-01-16 Fernando Nasser <fnasser@redhat.com>
|
||||
|
||||
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
|
||||
Discard GDK_ENTER_NOTIFY related to ungrabs.
|
||||
|
||||
2004-01-16 Fernando Nasser <fnasser@redhat.com>
|
||||
|
||||
* java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
|
||||
|
@ -960,16 +960,21 @@ pre_event_handler (GtkWidget *widget, GdkEvent *event, jobject peer)
|
||||
}
|
||||
break;
|
||||
case GDK_ENTER_NOTIFY:
|
||||
(*gdk_env)->CallVoidMethod (gdk_env, peer, postMouseEventID,
|
||||
AWT_MOUSE_ENTERED,
|
||||
(jlong)event->crossing.time,
|
||||
state_to_awt_mods (event->crossing.state),
|
||||
(jint)event->crossing.x,
|
||||
(jint)event->crossing.y,
|
||||
0,
|
||||
JNI_FALSE);
|
||||
/* We are not interested in enter events that are due to
|
||||
grab/ungrab and not to actually crossing boundaries */
|
||||
if (event->crossing.mode == GDK_CROSSING_NORMAL)
|
||||
(*gdk_env)->CallVoidMethod (gdk_env, peer, postMouseEventID,
|
||||
AWT_MOUSE_ENTERED,
|
||||
(jlong)event->crossing.time,
|
||||
state_to_awt_mods (event->crossing.state),
|
||||
(jint)event->crossing.x,
|
||||
(jint)event->crossing.y,
|
||||
0,
|
||||
JNI_FALSE);
|
||||
break;
|
||||
case GDK_LEAVE_NOTIFY:
|
||||
/* We are not interested in leave events that are due to
|
||||
grab/ungrab and not to actually crossing boundaries */
|
||||
if (event->crossing.mode == GDK_CROSSING_NORMAL)
|
||||
(*gdk_env)->CallVoidMethod (gdk_env, peer,
|
||||
postMouseEventID,
|
||||
|
Loading…
x
Reference in New Issue
Block a user