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:
Owen Taylor 1999-01-15 15:56:32 +00:00 committed by Owen Taylor
parent 40f9670464
commit eb7c4e4589
2 changed files with 10 additions and 10 deletions

View File

@ -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)

View File

@ -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)