Method xSendEvent = getOSMethod("XSendEvent",
int.class, int.class, boolean.class, int.class, int.class);
+ Method xFlush = getOSMethod("XFlush", int.class);
/* SubstructureRedirectMask : 1L<<20 | SubstructureNotifyMask : 1L<<19 */
invokeOSMethod(xSendEvent, xDisplay, rootWin,
false, (int) (1L << 20 | 1L << 19), malloc);
+ invokeOSMethod(xFlush, xDisplay);
+
invokeOSMethod(getOSMethod("g_free", int.class), malloc);
} else if (SwtUtil.isWindowsPlatform()) {
Method xSendEvent = getOSMethod("XSendEvent", long.class, long.class, boolean.class,
long.class, long.class);
+ Method xFlush = getOSMethod("XFlush", long.class);
/* ubstructureRedirectMask : 1L<<20 | SubstructureNotifyMask : 1L<<19 */
invokeOSMethod(xSendEvent, xDisplay, rootWin,
false, (long) (1L << 20 | 1L << 19), malloc);
+ invokeOSMethod(xFlush, xDisplay);
+
invokeOSMethod(getOSMethod("g_free", long.class), malloc);
} else if (SwtUtil.isWindowsPlatform()) {