bug-gnustep
[Top][All Lists]
Advanced

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

Re: Fix: XGServerWindow.m, -windowDevice:


From: BALATON Zoltan
Subject: Re: Fix: XGServerWindow.m, -windowDevice:
Date: Thu, 13 Jun 2002 14:32:42 +0200 (MEST)

Hello,

On Tue, 11 Jun 2002, Georg Fleischmann wrote:
> The patch replaces a hack in the X backend code which doesn't do it too well.
> I played around with the problem and finally replaced the hack with a
> usleep(1) - that did it :-)
[...]
> !   /* hack:
> !    * wait until a resize of window is finished (especially for NSMenu)
> !    * is there any way to wait until X finished it's stuff?
> !    * XSync(), XFlush() doesn't do the job!
> !    */
> !   {
> !     int     i = 0;
> !     do
> !       {
> !     XGetGeometry(dpy, window->ident, &window->root,
> !                  &x, &y, &width, &height,
> !                  &window->border, &window->depth);
> !       }
> !     while( i++<10 && height != window->siz_hints.height );
> !   }

Isn't the correct way to do this is to wait for a ConfigureNotify event
with something like XWindowEvent?

Regards,
BALATON Zoltan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]