forked from enlightenment/enlightenment
parent
580a468103
commit
1d968569c2
|
@ -44,6 +44,18 @@ static Ecore_Idle_Enterer *_e_main_idle_enterer_flusher = NULL;
|
||||||
|
|
||||||
#define TS_DO
|
#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 */
|
/* externally accessible functions */
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
|
@ -57,19 +69,9 @@ main(int argc, char **argv)
|
||||||
struct sigaction action;
|
struct sigaction action;
|
||||||
double t, tstart, begin;
|
double t, tstart, begin;
|
||||||
|
|
||||||
#ifdef 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; \
|
|
||||||
}
|
|
||||||
double t0, t1, t2;
|
|
||||||
t0 = t1 = t2 = ecore_time_get();
|
t0 = t1 = t2 = ecore_time_get();
|
||||||
#else
|
|
||||||
#define TS(x)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TS("begin");
|
TS("begin");
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -1028,14 +1030,22 @@ _e_main_screens_init(void)
|
||||||
Ecore_X_Window *roots;
|
Ecore_X_Window *roots;
|
||||||
int num, i;
|
int num, i;
|
||||||
|
|
||||||
|
TS("screens: atoms");
|
||||||
if (!e_atoms_init()) return 0;
|
if (!e_atoms_init()) return 0;
|
||||||
|
TS("screens: manager");
|
||||||
if (!e_manager_init()) return 0;
|
if (!e_manager_init()) return 0;
|
||||||
|
TS("screens: container");
|
||||||
if (!e_container_init()) return 0;
|
if (!e_container_init()) return 0;
|
||||||
|
TS("screens: zone");
|
||||||
if (!e_zone_init()) return 0;
|
if (!e_zone_init()) return 0;
|
||||||
|
TS("screens: desk");
|
||||||
if (!e_desk_init()) return 0;
|
if (!e_desk_init()) return 0;
|
||||||
|
TS("screens: menu");
|
||||||
if (!e_menu_init()) return 0;
|
if (!e_menu_init()) return 0;
|
||||||
|
TS("screens: exehist");
|
||||||
if (!e_exehist_init()) return 0;
|
if (!e_exehist_init()) return 0;
|
||||||
|
|
||||||
|
TS("screens: get roots");
|
||||||
num = 0;
|
num = 0;
|
||||||
roots = ecore_x_window_root_list(&num);
|
roots = ecore_x_window_root_list(&num);
|
||||||
if ((!roots) || (num <= 0))
|
if ((!roots) || (num <= 0))
|
||||||
|
@ -1044,9 +1054,13 @@ _e_main_screens_init(void)
|
||||||
num);
|
num);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
TS("screens: focus");
|
||||||
if (!e_focus_init()) return 0;
|
if (!e_focus_init()) return 0;
|
||||||
|
TS("screens: border");
|
||||||
if (!e_border_init()) return 0;
|
if (!e_border_init()) return 0;
|
||||||
|
TS("screens: win");
|
||||||
if (!e_win_init()) return 0;
|
if (!e_win_init()) return 0;
|
||||||
|
TS("screens: manage roots");
|
||||||
for (i = 0; i < num; i++)
|
for (i = 0; i < num; i++)
|
||||||
{
|
{
|
||||||
E_Manager *man;
|
E_Manager *man;
|
||||||
|
@ -1082,6 +1096,7 @@ _e_main_screens_init(void)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
TS("screens: sync");
|
||||||
|
|
||||||
free(roots);
|
free(roots);
|
||||||
ecore_x_sync();
|
ecore_x_sync();
|
||||||
|
|
|
@ -181,6 +181,7 @@ e_manager_manage_windows(E_Manager *man)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ecore_x_window_attributes_get(windows[i], &att);
|
ecore_x_window_attributes_get(windows[i], &att);
|
||||||
|
if ((att.override) || (att.input_only)) continue;
|
||||||
if (!ecore_x_window_prop_property_get(windows[i],
|
if (!ecore_x_window_prop_property_get(windows[i],
|
||||||
atom_xmbed,
|
atom_xmbed,
|
||||||
atom_xmbed, 32,
|
atom_xmbed, 32,
|
||||||
|
@ -265,10 +266,10 @@ e_manager_manage_windows(E_Manager *man)
|
||||||
* should be seen */
|
* should be seen */
|
||||||
E_Container *con;
|
E_Container *con;
|
||||||
E_Border *bd;
|
E_Border *bd;
|
||||||
|
|
||||||
con = e_container_current_get(man);
|
con = e_container_current_get(man);
|
||||||
bd = e_border_new(con, windows[i], 1, 0);
|
bd = e_border_new(con, windows[i], 1, 0);
|
||||||
if (bd)
|
if (bd) e_border_show(bd);
|
||||||
e_border_show(bd);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(windows);
|
free(windows);
|
||||||
|
|
Loading…
Reference in New Issue