Commit 2f9c39f8 by Fernando Nasser Committed by Fernando Nasser

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
parent da1c22e1
2004-01-16 Fernando Nasser <fnasser@redhat.com> 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 * java/awt/EventQueue.java (pop): Prevent breaking the chain if pop
is called for an intermediate queue. is called for an intermediate queue.
......
...@@ -960,16 +960,21 @@ pre_event_handler (GtkWidget *widget, GdkEvent *event, jobject peer) ...@@ -960,16 +960,21 @@ pre_event_handler (GtkWidget *widget, GdkEvent *event, jobject peer)
} }
break; break;
case GDK_ENTER_NOTIFY: case GDK_ENTER_NOTIFY:
(*gdk_env)->CallVoidMethod (gdk_env, peer, postMouseEventID, /* We are not interested in enter events that are due to
AWT_MOUSE_ENTERED, grab/ungrab and not to actually crossing boundaries */
(jlong)event->crossing.time, if (event->crossing.mode == GDK_CROSSING_NORMAL)
state_to_awt_mods (event->crossing.state), (*gdk_env)->CallVoidMethod (gdk_env, peer, postMouseEventID,
(jint)event->crossing.x, AWT_MOUSE_ENTERED,
(jint)event->crossing.y, (jlong)event->crossing.time,
0, state_to_awt_mods (event->crossing.state),
JNI_FALSE); (jint)event->crossing.x,
(jint)event->crossing.y,
0,
JNI_FALSE);
break; break;
case GDK_LEAVE_NOTIFY: 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) if (event->crossing.mode == GDK_CROSSING_NORMAL)
(*gdk_env)->CallVoidMethod (gdk_env, peer, (*gdk_env)->CallVoidMethod (gdk_env, peer,
postMouseEventID, postMouseEventID,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment