--- ray/src/hd/rhd_x11.c 1998/06/17 15:44:07 3.26 +++ ray/src/hd/rhd_x11.c 1998/08/19 17:43:08 3.27 @@ -293,8 +293,10 @@ dev_input() /* get X11 input */ do getevent(); - while (XQLength(ourdisplay) > 0); + while (XPending(ourdisplay) > 0); + odev.inpready = 0; + return(inpresflags); } @@ -322,7 +324,7 @@ dev_flush() /* flush output */ { qtUpdate(); rayqleft = RAYQLEN; - return(XPending(ourdisplay)); + return(odev.inpready = XPending(ourdisplay)); }