]> git.armaanb.net Git - chorizo.git/commitdiff
Revert "Deal with race conditions while embedding"
authorPeter Hofmann <scm@uninformativ.de>
Sun, 15 Jun 2014 03:57:53 +0000 (05:57 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Sun, 15 Jun 2014 03:57:53 +0000 (05:57 +0200)
This reverts commit c32e64b89186c09c5d2c9f82a18e0a541dd414b4.

Nonsense.

We read the XID from tabbed, which means tabbed must know its XID, which
means there must be a window to plug-in to.

zea.c

diff --git a/zea.c b/zea.c
index 22be5e8780690403cb2be1390017214b443fea1f..6ffe99431af5bc7bf91c60ed0dddea90d11c68f2 100644 (file)
--- a/zea.c
+++ b/zea.c
@@ -230,15 +230,6 @@ zea_new_client(const gchar *uri)
        else
        {
                c->win = gtk_plug_new(embed);
-               while (!gtk_plug_get_embedded(GTK_PLUG(c->win)))
-               {
-                       fprintf(stderr, "zea: Not yet embedded! Waiting a second...\n");
-                       sleep(1);
-
-                       if (c->win != NULL)
-                               gtk_widget_destroy(c->win);
-                       c->win = gtk_plug_new(embed);
-               }
        }
 
        /* When using Gtk2, zea only shows a white area when run in