From kde-core-devel Tue Jul 16 02:04:03 2002 From: Till Krech Date: Tue, 16 Jul 2002 02:04:03 +0000 To: kde-core-devel Subject: Re: QXEmbed reparent patch X-MARC-Message: https://marc.info/?l=kde-core-devel&m=102678502415901 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 requir= ed > > 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. If the patch would be pretty and I really understood what's going on here I= =20 hadn't posted it to this list. But hey, it works and that's what KDE is=20 supposed to do.=20 I know that XQueryTree is told to be slow. Although I couldn't observe it i= n=20 this case. So, where is the better patch, which works ? ;) regards, till =20 =2D-=20 SuSE Linux 8.0 (i386) 2.4.18-64GB-SMP KDE: 3.0.6 (KDE 3.1 alpha1) Qt: 3.0.6-snapshot-20020712