Commit eb7c4e45 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

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().
parent 40f96704
...@@ -2000,8 +2000,7 @@ gdk_event_prepare (gpointer source_data, ...@@ -2000,8 +2000,7 @@ gdk_event_prepare (gpointer source_data,
*timeout = -1; *timeout = -1;
gdk_events_queue (); retval = (gdk_event_queue_find_first () != NULL) || XPending (gdk_display);
retval = (gdk_event_queue_find_first () != NULL);
GDK_THREADS_LEAVE (); GDK_THREADS_LEAVE ();
...@@ -2017,9 +2016,9 @@ gdk_event_check (gpointer source_data, ...@@ -2017,9 +2016,9 @@ gdk_event_check (gpointer source_data,
GDK_THREADS_ENTER (); GDK_THREADS_ENTER ();
if (event_poll_fd.revents & G_IO_IN) if (event_poll_fd.revents & G_IO_IN)
gdk_events_queue (); retval = (gdk_event_queue_find_first () != NULL) || XPending (gdk_display);
else
retval = (gdk_event_queue_find_first () != NULL); retval = FALSE;
GDK_THREADS_LEAVE (); GDK_THREADS_LEAVE ();
...@@ -2053,6 +2052,7 @@ gdk_event_dispatch (gpointer source_data, ...@@ -2053,6 +2052,7 @@ gdk_event_dispatch (gpointer source_data,
GDK_THREADS_ENTER (); GDK_THREADS_ENTER ();
gdk_events_queue();
event = gdk_event_unqueue(); event = gdk_event_unqueue();
if (event) if (event)
......
...@@ -2000,8 +2000,7 @@ gdk_event_prepare (gpointer source_data, ...@@ -2000,8 +2000,7 @@ gdk_event_prepare (gpointer source_data,
*timeout = -1; *timeout = -1;
gdk_events_queue (); retval = (gdk_event_queue_find_first () != NULL) || XPending (gdk_display);
retval = (gdk_event_queue_find_first () != NULL);
GDK_THREADS_LEAVE (); GDK_THREADS_LEAVE ();
...@@ -2017,9 +2016,9 @@ gdk_event_check (gpointer source_data, ...@@ -2017,9 +2016,9 @@ gdk_event_check (gpointer source_data,
GDK_THREADS_ENTER (); GDK_THREADS_ENTER ();
if (event_poll_fd.revents & G_IO_IN) if (event_poll_fd.revents & G_IO_IN)
gdk_events_queue (); retval = (gdk_event_queue_find_first () != NULL) || XPending (gdk_display);
else
retval = (gdk_event_queue_find_first () != NULL); retval = FALSE;
GDK_THREADS_LEAVE (); GDK_THREADS_LEAVE ();
...@@ -2053,6 +2052,7 @@ gdk_event_dispatch (gpointer source_data, ...@@ -2053,6 +2052,7 @@ gdk_event_dispatch (gpointer source_data,
GDK_THREADS_ENTER (); GDK_THREADS_ENTER ();
gdk_events_queue();
event = gdk_event_unqueue(); event = gdk_event_unqueue();
if (event) if (event)
......
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