[gtk+] broadway: Fix gdk_broadway_server_wait_for_reply



commit f72d1a8d2baf36bdae15728ef8d045834d04cdb6
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Jan 8 17:28:49 2013 +0100

    broadway: Fix gdk_broadway_server_wait_for_reply
    
    We didn't properly queue an idle to handle the read messages so they
    were never serviced in some situations.

 gdk/broadway/gdkbroadway-server.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gdk/broadway/gdkbroadway-server.c b/gdk/broadway/gdkbroadway-server.c
index 803152a..0699778 100644
--- a/gdk/broadway/gdkbroadway-server.c
+++ b/gdk/broadway/gdkbroadway-server.c
@@ -309,16 +309,16 @@ input_available_cb (gpointer stream, gpointer user_data)
 static BroadwayReply *
 gdk_broadway_server_wait_for_reply (GdkBroadwayServer *server,
 				    guint32 serial)
-{ 
+{
   BroadwayReply *reply;
-  
+
   while (TRUE)
     {
       reply = find_response_by_serial (server, serial);
       if (reply)
 	{
 	  server->incomming = g_list_remove (server->incomming, reply);
-	  return reply;
+	  break;
 	}
 
       read_some_input_blocking (server);
@@ -326,6 +326,7 @@ gdk_broadway_server_wait_for_reply (GdkBroadwayServer *server,
     }
 
   queue_process_input_at_idle (server);
+  return reply;
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]