forked from AuroraMiddleware/gtk
Do all event processing in dispatch() instead of prepare() and check().
Thu Jan 14 19:19:51 1999 Owen Taylor <otaylor@redhat.com> * gdk/gdkevents.c: Do all event processing in dispatch() instead of prepare() and check().
This commit is contained in:
parent
40f9670464
commit
eb7c4e4589
@ -2000,8 +2000,7 @@ gdk_event_prepare (gpointer source_data,
|
||||
|
||||
*timeout = -1;
|
||||
|
||||
gdk_events_queue ();
|
||||
retval = (gdk_event_queue_find_first () != NULL);
|
||||
retval = (gdk_event_queue_find_first () != NULL) || XPending (gdk_display);
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
@ -2017,9 +2016,9 @@ gdk_event_check (gpointer source_data,
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
if (event_poll_fd.revents & G_IO_IN)
|
||||
gdk_events_queue ();
|
||||
|
||||
retval = (gdk_event_queue_find_first () != NULL);
|
||||
retval = (gdk_event_queue_find_first () != NULL) || XPending (gdk_display);
|
||||
else
|
||||
retval = FALSE;
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
@ -2053,6 +2052,7 @@ gdk_event_dispatch (gpointer source_data,
|
||||
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
gdk_events_queue();
|
||||
event = gdk_event_unqueue();
|
||||
|
||||
if (event)
|
||||
|
@ -2000,8 +2000,7 @@ gdk_event_prepare (gpointer source_data,
|
||||
|
||||
*timeout = -1;
|
||||
|
||||
gdk_events_queue ();
|
||||
retval = (gdk_event_queue_find_first () != NULL);
|
||||
retval = (gdk_event_queue_find_first () != NULL) || XPending (gdk_display);
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
@ -2017,9 +2016,9 @@ gdk_event_check (gpointer source_data,
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
if (event_poll_fd.revents & G_IO_IN)
|
||||
gdk_events_queue ();
|
||||
|
||||
retval = (gdk_event_queue_find_first () != NULL);
|
||||
retval = (gdk_event_queue_find_first () != NULL) || XPending (gdk_display);
|
||||
else
|
||||
retval = FALSE;
|
||||
|
||||
GDK_THREADS_LEAVE ();
|
||||
|
||||
@ -2053,6 +2052,7 @@ gdk_event_dispatch (gpointer source_data,
|
||||
|
||||
GDK_THREADS_ENTER ();
|
||||
|
||||
gdk_events_queue();
|
||||
event = gdk_event_unqueue();
|
||||
|
||||
if (event)
|
||||
|
Loading…
Reference in New Issue
Block a user