Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!smsc.sony.com!dce From: dce@smsc.sony.com (David Elliott) Newsgroups: comp.windows.x Subject: Re: what am i doing wrong? Message-ID: <1991Jan25.181756.8567@smsc.sony.com> Date: 25 Jan 91 18:17:56 GMT References: <1991Jan23.1189.8676@canrem.uucp> Sender: dce@smsc.sony.com (David Elliott) Reply-To: dce@smsc.sony.com (David Elliott) Organization: Sony Microsystems, San Jose, CA Lines: 31 In article <1991Jan23.1189.8676@canrem.uucp>, stuart_rose@canrem.uucp (stuart rose) writes: |> Mihran Tuceryan writes to All (in the U-WNDWX Conf.) ... |> In article <1991Jan20.215551.15000@msuinfo.cl.msu.edu> |> MIHRAN TUCERYAN writes: |> |> Try flushing the display buffer before calling the main loop |> intrinsic. |> |> MT> XDrawLine(dpy, win, gc, x1, y1, x2, y2); |> XFlush(dpy); |> MT> XtMainLoop (); |> MT> } Please don't post answers you haven't researched. Flushing won't do anything if the window hasn't already been displayed, such as may be the case if it was started under a window manager that lets the user do the placement (such as twm without RandomPlacement set). Drawing to a window before Expose events have been sent is never guaranteed to work, no matter whether you flush the display buffer or not (in fact, there can even be implementations of Xlib that don't even have a display buffer). -- ...David Elliott ...dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce ...(408)944-4073 ..."His lower lip waved poutily with defiance..."