1 #include "allincludes.h" 2 3 int W_Mono()4W_Mono() 5 { 6 return forceMono; 7 } 8 9 void W_Beep()10W_Beep() 11 { 12 XBell(W_Display, 0); 13 } 14 15 int W_WindowWidth(window)16W_WindowWidth(window) 17 W_Window window; 18 { 19 return (W_Void2Window(window)->width); 20 } 21 22 int W_WindowHeight(window)23W_WindowHeight(window) 24 W_Window window; 25 { 26 return (W_Void2Window(window)->height); 27 } 28 29 int W_Socket()30W_Socket() 31 { 32 return (ConnectionNumber(W_Display)); 33 } 34 35 void W_Flush()36W_Flush() 37 { 38 XFlush(W_Display); 39 } 40 41 #ifdef AUTOKEY W_AutoRepeatOff()42void W_AutoRepeatOff() 43 { 44 XAutoRepeatOff(W_Display); 45 W_Flush(); 46 } 47 W_AutoRepeatOn()48void W_AutoRepeatOn() 49 { 50 XAutoRepeatOn(W_Display); 51 W_Flush(); 52 } 53 #endif /* AUTOKEY */ 54 55 /* synchronize the X server with the client [BDyess] */ 56 void W_Sync()57W_Sync() 58 { 59 XSync(W_Display,False); 60 } 61 62