menu: add XFlush to reflection of Always on Top feature
authorGiWoong Kim <giwoong.kim@samsung.com>
Fri, 8 May 2015 05:26:12 +0000 (14:26 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Fri, 8 May 2015 08:53:27 +0000 (17:53 +0900)
Change-Id: I5c745a2db06e6f3aca6ba45e149eaf08503d789f
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/util/SkinUtil.java

index d2a97ec..8b05b6c 100644 (file)
@@ -733,10 +733,13 @@ public class SkinUtil {
 
                        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()) {
@@ -1020,10 +1023,13 @@ public class SkinUtil {
 
                        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()) {