6 void set_update_delay(int i
) { update_delay
= i
; }
7 void set_loop_delay(int i
) { loop_delay
= i
; }
9 int main(int argc
, char **argv
) {
11 long update_delay_counter
;
13 initXwindow(argc
, argv
);
14 openXwindow(argc
, argv
, jDockApp_main_xpm
, jDockApp_mask_xpm
,
15 mask_width
, mask_height
, "#000000", "#000000", "#000000",
23 update_delay_counter
= 100000 * update_delay
;
28 while(XPending(display
)) {
29 XNextEvent(display
, &event
);
40 XSetInputFocus(display
,
41 PointerRoot
, RevertToParent
, CurrentTime
);
44 XSetInputFocus(display
,
45 PointerRoot
, RevertToParent
, CurrentTime
);
50 update_delay_counter
-= 1000;
51 if(update_delay_counter
<=0) {
53 update_delay_counter
= 100000 * update_delay
;