client/x11: do not discard events when updating EGFX surface mapping

Passing True to XSync() discards any pending X11 events. Occasionally
this caused ButtonRelease or KeyRelease to be lost and not forwarded
to the remote computed, leading to stuck keys and buttons.

This should resolve issue #2391
This commit is contained in:
ilammy 2015-06-30 12:41:23 +03:00
parent cc4b5f98c3
commit 1012bccdaa

View File

@ -112,7 +112,7 @@ int xf_OutputUpdate(xfContext* xfc, xfGfxSurface* surface)
region16_clear(&surface->invalidRegion);
XSetClipMask(xfc->display, xfc->gc, None);
XSync(xfc->display, True);
XSync(xfc->display, False);
return 1;
}