ecore_x: first unmap, then event
authorSebastian Dransfeld <sd@tango.flipp.net>
Fri, 16 Nov 2012 08:01:39 +0000 (08:01 +0000)
committerSebastian Dransfeld <sd@tango.flipp.net>
Fri, 16 Nov 2012 08:01:39 +0000 (08:01 +0000)
SVN revision: 79362

legacy/ecore/src/lib/ecore_x/xlib/ecore_x_window.c

index f16f5b1..843694c 100644 (file)
@@ -470,6 +470,7 @@ ecore_x_window_hide(Ecore_X_Window win)
                   &uidum,
                   &uidum);
 
+   XUnmapWindow(_ecore_x_disp, win);
    xev.xunmap.type = UnmapNotify;
    xev.xunmap.serial = 0;
    xev.xunmap.send_event = True;
@@ -479,7 +480,6 @@ ecore_x_window_hide(Ecore_X_Window win)
    xev.xunmap.from_configure = False;
    XSendEvent(_ecore_x_disp, xev.xunmap.event, False,
               SubstructureRedirectMask | SubstructureNotifyMask, &xev);
-   XUnmapWindow(_ecore_x_disp, win);
 }
 
 /**