Enlightenment CVS committal Author : kwo Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Ecore_X.h ecore_x_netwm.c Log Message: Requested by tilman. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v retrieving revision 1.172 retrieving revision 1.173 diff -u -3 -r1.172 -r1.173 --- Ecore_X.h 29 Aug 2006 22:37:07 -0000 1.172 +++ Ecore_X.h 13 Sep 2006 17:45:12 -0000 1.173 @@ -1515,6 +1515,8 @@ EAPI void ecore_x_damage_del(Ecore_X_Damage damage); EAPI void ecore_x_damage_subtract(Ecore_X_Damage damage, Ecore_X_Region repair, Ecore_X_Region parts); +EAPI int ecore_x_screen_is_composited(int screen); + #ifdef __cplusplus } #endif =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_netwm.c,v retrieving revision 1.54 retrieving revision 1.55 diff -u -3 -r1.54 -r1.55 --- ecore_x_netwm.c 7 Jun 2006 23:30:13 -0000 1.54 +++ ecore_x_netwm.c 13 Sep 2006 17:45:12 -0000 1.55 @@ -1638,3 +1638,22 @@ if (info->wmclass) free(info->wmclass); free(info); } + +/* + * Is screen composited? + */ +EAPI int +ecore_x_screen_is_composited(int screen) +{ + Ecore_X_Window win; + Ecore_X_Atom atom; + char buf[32]; + + snprintf(buf, sizeof(buf), "_NET_WM_CM_S%d", screen); + atom = XInternAtom(_ecore_x_disp, buf, True); + if (atom == None) return 0; + + win = XGetSelectionOwner(_ecore_x_disp, atom); + + return win != None; +} ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs