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
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep