Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: ecore-e16.c ecore-e16.h ewmh.c Log Message: User Time handling bits. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/ecore-e16.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- ecore-e16.c 13 Nov 2005 01:22:28 -0000 1.19 +++ ecore-e16.c 14 Nov 2005 19:28:00 -0000 1.20 @@ -1228,6 +1228,13 @@ desk, 1); } +int +ecore_x_netwm_user_time_get(Ecore_X_Window win, unsigned int *ts) +{ + return ecore_x_window_prop_card32_get(win, ECORE_X_ATOM_NET_WM_USER_TIME, + ts, 1); +} + void ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity) { =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/ecore-e16.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- ecore-e16.h 13 Nov 2005 01:22:28 -0000 1.13 +++ ecore-e16.h 14 Nov 2005 19:28:01 -0000 1.14 @@ -264,6 +264,10 @@ unsigned int desk); int ecore_x_netwm_desktop_get(Ecore_X_Window win, unsigned int *desk); + +int ecore_x_netwm_user_time_get(Ecore_X_Window win, + unsigned int *ts); + void ecore_x_netwm_opacity_set(Ecore_X_Window win, unsigned int opacity); int ecore_x_netwm_opacity_get(Ecore_X_Window win, =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/ewmh.c,v retrieving revision 1.97 retrieving revision 1.98 diff -u -3 -r1.97 -r1.98 --- ewmh.c 13 Nov 2005 01:22:28 -0000 1.97 +++ ewmh.c 14 Nov 2005 19:28:01 -0000 1.98 @@ -651,6 +651,23 @@ } static void +EWMH_GetWindowUserTime(EWin * ewin) +{ +#if 0 /* TBD */ + int num; + unsigned int ts; + + num = ecore_x_netwm_user_time_get(_EwinGetClientXwin(ewin), &ts); + if (num <= 0) + return; + + Eprintf("EWMH_GetWindowUserTime %#x\n", ts); +#else + ewin = NULL; +#endif +} + +static void EWMH_GetWindowMisc(EWin * ewin) { int num; @@ -762,6 +779,7 @@ EWMH_GetWindowType(ewin); EWMH_GetWindowIcons(ewin); EWMH_GetWindowStrut(ewin); + EWMH_GetWindowUserTime(ewin); } /* @@ -1066,4 +1084,6 @@ EWMH_GetWindowStrut(ewin); else if (atom_change == ECORE_X_ATOM_NET_WM_WINDOW_OPACITY) EWMH_GetWindowOpacity(ewin); + else if (atom_change == ECORE_X_ATOM_NET_WM_USER_TIME) + EWMH_GetWindowUserTime(ewin); } ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs