Bug fix #224: Flush after XUngrabServer()

Fix #224 by XFlush() after XUngrabServer(). Thanks to rathsky and smlx
for reporting.