From kde-devel Tue Jul 16 13:28:20 2002 From: Kuba Ober Date: Tue, 16 Jul 2002 13:28:20 +0000 To: kde-devel Subject: Re: QXEmbed reparent patch X-MARC-Message: https://marc.info/?l=kde-devel&m=102682623113613 On poniedziałek 15 lipiec 2002 10:04 pm, Till Krech wrote: > Hi, > > On Monday 15 July 2002 02:36, Dirk Mueller wrote: > > On Son, 14 Jul 2002, Till Krech wrote: > > > The trick is, to retry to XReparentWindow the window for up to 50 times > > > with slight delays (usleep(1000)) and look if it has already the > > > required parent with XQueryTree. > > > > ewww.. both hardcoded usleeps and XQueryTree's are awful. XQueryTree is > > terrible slow. > > > > I think what you're looking for is a syncX(). > > looked, tried, whereever I place it - it changes nothing. Maybe flushX() and then syncX(), otherwise it makes no big sense -- since the queueud xlib requests may not have went to the server, so the sync waits for finishing of an arbitrary subset of your requests, rather than all of them. Dunno if this will help in this case though. Cheers, Kuba Ober >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<