Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
ecore_x_window.c
Log Message:
icccm respect - yo!
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- ecore_x_window.c 9 Mar 2006 03:51:43 -0000 1.51
+++ ecore_x_window.c 18 Jul 2006 18:32:10 -0000 1.52
@@ -393,6 +393,26 @@
EAPI void
ecore_x_window_hide(Ecore_X_Window win)
{
+ XEvent xev;
+ Window root;
+ int idum;
+ unsigned int uidum;
+
+ /* ICCCM: SEND unmap event... */
+ root = win;
+ if (ScreenCount(_ecore_x_disp) == 1)
+ root = DefaultRootWindow(_ecore_x_disp);
+ else
+ XGetGeometry(_ecore_x_disp, win, &root, &idum, &idum, &uidum, &uidum,
&uidum, &uidum);
+ xev.xunmap.type = UnmapNotify;
+ xev.xunmap.serial = 0;
+ xev.xunmap.send_event = True;
+ xev.xunmap.display = _ecore_x_disp;
+ xev.xunmap.event = root;
+ xev.xunmap.window = win;
+ xev.xunmap.from_configure = False;
+ XSendEvent(_ecore_x_disp, xev.xunmap.event, False,
+ SubstructureRedirectMask | SubstructureNotifyMask, &xev);
XUnmapWindow(_ecore_x_disp, win);
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs