#define TS_DO
+#ifdef TS_DO
+#define TS(x) \
+ { \
+ t1 = ecore_time_get(); \
+ printf("ESTART: %1.5f [%1.5f] - %s\n", t1 - t0, t1 - t2, x); \
+ t2 = t1; \
+ }
+static double t0, t1, t2;
+#else
+#define TS(x)
+#endif
+
/* externally accessible functions */
int
main(int argc, char **argv)
struct sigaction action;
double t, tstart, begin;
-#ifdef TS_DO
-#define TS(x) \
- { \
- t1 = ecore_time_get(); \
- printf("ESTART: %1.5f [%1.5f] - %s\n", t1 - t0, t1 - t2, x); \
- t2 = t1; \
- }
- double t0, t1, t2;
+#ifdef TS_DO
t0 = t1 = t2 = ecore_time_get();
-#else
-#define TS(x)
#endif
-
TS("begin");
#if 0
Ecore_X_Window *roots;
int num, i;
+ TS("screens: atoms");
if (!e_atoms_init()) return 0;
+ TS("screens: manager");
if (!e_manager_init()) return 0;
+ TS("screens: container");
if (!e_container_init()) return 0;
+ TS("screens: zone");
if (!e_zone_init()) return 0;
+ TS("screens: desk");
if (!e_desk_init()) return 0;
+ TS("screens: menu");
if (!e_menu_init()) return 0;
+ TS("screens: exehist");
if (!e_exehist_init()) return 0;
+ TS("screens: get roots");
num = 0;
roots = ecore_x_window_root_list(&num);
if ((!roots) || (num <= 0))
num);
return 0;
}
+ TS("screens: focus");
if (!e_focus_init()) return 0;
+ TS("screens: border");
if (!e_border_init()) return 0;
+ TS("screens: win");
if (!e_win_init()) return 0;
+ TS("screens: manage roots");
for (i = 0; i < num; i++)
{
E_Manager *man;
return 0;
}
}
+ TS("screens: sync");
free(roots);
ecore_x_sync();
int ret;
ecore_x_window_attributes_get(windows[i], &att);
+ if ((att.override) || (att.input_only)) continue;
if (!ecore_x_window_prop_property_get(windows[i],
atom_xmbed,
atom_xmbed, 32,
* should be seen */
E_Container *con;
E_Border *bd;
+
con = e_container_current_get(man);
bd = e_border_new(con, windows[i], 1, 0);
- if (bd)
- e_border_show(bd);
+ if (bd) e_border_show(bd);
}
}
free(windows);