From: <enl...@li...> - 2005-06-10 09:24:43
|
Enlightenment CVS committal Author : handyande Project : misc Module : engage Dir : misc/engage/src/module Modified Files: e_mod_main.c Log Message: Module works with new ecore_x, no time to fix standalone right now =================================================================== RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -3 -r1.48 -r1.49 --- e_mod_main.c 9 Jun 2005 13:14:53 -0000 1.48 +++ e_mod_main.c 10 Jun 2005 09:24:36 -0000 1.49 @@ -2293,10 +2293,13 @@ /* FIXME - this needs to be saved in config */ static char *ignores[] = { "Gkrellm2", "trayer", NULL}; char **cur; + Ecore_X_Window_State *state, *tmp; + unsigned int num; - if (ecore_x_window_prop_state_isset(bd->win, - ECORE_X_WINDOW_STATE_SKIP_TASKBAR)) - return 1; + ecore_x_netwm_window_state_get(bd->win, &state, &num); + for (tmp = state; tmp; tmp++) + if (tmp == ECORE_X_WINDOW_STATE_SKIP_TASKBAR) + return 1; for (cur = ignores; *cur; cur++) if (bd->client.icccm.class && strcmp(bd->client.icccm.class, *cur) == 0) |