why do a server rount trip for every border to get title when it's already

stored? bad bad bad! this will cause mucho slowness.



SVN revision: 46128
This commit is contained in:
Carsten Haitzler 2010-02-13 11:42:28 +00:00
parent 10cde00bbd
commit bdb206f5c6
1 changed files with 4 additions and 5 deletions

View File

@ -38,11 +38,10 @@ e_illume_border_is_keyboard(E_Border *bd)
char *title;
int ret = 0;
title = ecore_x_icccm_title_get(bd->client.win);
title = bd->client.icccm.title;
if ((title) &&
(!strcmp(title, il_cfg->policy.vkbd.title)))
ret = 1;
if (title) free(title);
if (ret) return ret;
}
if (il_cfg->policy.vkbd.match.name)
@ -73,7 +72,7 @@ e_illume_border_is_bottom_panel(E_Border *bd)
char *title;
int ret = 0;
title = ecore_x_icccm_title_get(bd->client.win);
title = bd->client.icccm.title;
if ((title) &&
(!strcmp(title, il_cfg->policy.softkey.title)))
ret = 1;
@ -106,7 +105,7 @@ e_illume_border_is_top_shelf(E_Border *bd)
char *title;
int ret = 0;
title = ecore_x_icccm_title_get(bd->client.win);
title = bd->client.icccm.title;
if ((title) &&
(!strcmp(title, il_cfg->policy.indicator.title)))
ret = 1;
@ -136,7 +135,7 @@ e_illume_border_is_home(E_Border *bd)
char *title;
int ret = 0;
title = ecore_x_icccm_title_get(bd->client.win);
title = bd->client.icccm.title;
if ((title) &&
(!strcmp(title, il_cfg->policy.home.title)))
ret = 1;