diff options
author | John Kohl <jtkohl@mit.edu> | 1990-01-10 10:58:37 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1990-01-10 10:58:37 +0000 |
commit | faa94dc87ab178b3fab0749974e22f21edab8e22 (patch) | |
tree | f42259150eb796b8ddd8c3a2055a2bc9788d9d75 /zwgc/X_gram.c | |
parent | b80f83ef4d92d99da74940a0f3d28b14a0a152f8 (diff) |
need to process input after the XSync's in order to make sure
we get all the events and process them in a timely manner.
Diffstat (limited to 'zwgc/X_gram.c')
-rw-r--r-- | zwgc/X_gram.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zwgc/X_gram.c b/zwgc/X_gram.c index 2ba71ad..c0d8777 100644 --- a/zwgc/X_gram.c +++ b/zwgc/X_gram.c @@ -204,6 +204,7 @@ void x_gram_create(dpy, gram, xalign, yalign, xpos, ypos, xsize, ysize, Window w; XSizeHints sizehints; XWMHints wmhints; + extern void x_get_input(); /* * Adjust xpos, ypos based on the alignments xalign, yalign and the sizes: @@ -303,6 +304,11 @@ void x_gram_create(dpy, gram, xalign, yalign, xpos, ypos, xsize, ysize, } XFlush(dpy); + /* Because the flushing/syncing/etc with the error trapping can cause + events to be read into the Xlib queue, we need to go through the queue + here before exiting so that any pending events get processed. + */ + x_get_input(dpy); } void x_gram_draw(dpy, w, gram, region) |