XWorkstation.st
changeset 3326 5d58d51bf927
parent 3322 1c92a842f099
child 3329 05ac7164c99d
equal deleted inserted replaced
3325:ea98967068f1 3326:5d58d51bf927
  9522 #endif
  9522 #endif
  9523 %}.
  9523 %}.
  9524     self primitiveFailedOrClosedConnection
  9524     self primitiveFailedOrClosedConnection
  9525 !
  9525 !
  9526 
  9526 
       
  9527 primSync
       
  9528     "send all buffered drawing to the display AND wait until the display
       
  9529      has finished drawing it.
       
  9530      This is almost never needed, except if you are about to read previously
       
  9531      drawn pixels back from the display screen, or you want to wait for a beep
       
  9532      to be finished. See also #flush."
       
  9533 
       
  9534     <context: #return>
       
  9535 %{  
       
  9536 
       
  9537     if (ISCONNECTED) {
       
  9538 
       
  9539         ENTER_XLIB();
       
  9540         XSync(myDpy, 0);
       
  9541         LEAVE_XLIB();
       
  9542 
       
  9543     }
       
  9544 %}
       
  9545 !
       
  9546 
  9527 refreshKeyboardMapping:eB
  9547 refreshKeyboardMapping:eB
  9528     <context: #return>
  9548     <context: #return>
  9529 %{
  9549 %{
  9530     XMappingEvent *ev;
  9550     XMappingEvent *ev;
  9531 
  9551 
  9591      has finished drawing it.
  9611      has finished drawing it.
  9592      This is almost never needed, except if you are about to read previously
  9612      This is almost never needed, except if you are about to read previously
  9593      drawn pixels back from the display screen, or you want to wait for a beep
  9613      drawn pixels back from the display screen, or you want to wait for a beep
  9594      to be finished. See also #flush."
  9614      to be finished. See also #flush."
  9595 
  9615 
  9596     <context: #return>
  9616     self primSync.
  9597 %{  
  9617     self dispatchPendingEvents.
  9598 
       
  9599     if (ISCONNECTED) {
       
  9600 
       
  9601 	ENTER_XLIB();
       
  9602 	XSync(myDpy, 0);
       
  9603 	LEAVE_XLIB();
       
  9604 
       
  9605     }
       
  9606 %}
       
  9607 !
  9618 !
  9608 
  9619 
  9609 unBuffered
  9620 unBuffered
  9610     "make all drawing be sent immediately to the display.
  9621     "make all drawing be sent immediately to the display.
  9611      This makes all graphics synchronous and turns off any buffering
  9622      This makes all graphics synchronous and turns off any buffering
 11708 ! !
 11719 ! !
 11709 
 11720 
 11710 !XWorkstation class methodsFor:'documentation'!
 11721 !XWorkstation class methodsFor:'documentation'!
 11711 
 11722 
 11712 version
 11723 version
 11713     ^ '$Header: /cvs/stx/stx/libview/XWorkstation.st,v 1.377 2000-09-29 12:44:44 cg Exp $'
 11724     ^ '$Header: /cvs/stx/stx/libview/XWorkstation.st,v 1.378 2000-10-09 14:28:46 cg Exp $'
 11714 ! !
 11725 ! !
 11715 XWorkstation initialize!
 11726 XWorkstation initialize!