e17: find .desktops for libreoffice

SVN revision: 63989
This commit is contained in:
Hannes Janetzek 2011-10-11 20:10:29 +00:00
parent 3d1ecd29e5
commit ff7817d2be
1 changed files with 12 additions and 0 deletions

View File

@ -6365,6 +6365,7 @@ _e_border_eval0(E_Border *bd)
if (pname) eina_stringshare_del(pname);
if (pclass) eina_stringshare_del(pclass);
bd->client.icccm.fetch.name_class = 0;
bd->changes.icon = 1;
rem_change = 1;
}
if (bd->client.icccm.fetch.state)
@ -7774,6 +7775,17 @@ _e_border_eval(E_Border *bd)
bd->desktop = efreet_util_desktop_wm_class_find(bd->client.icccm.name,
bd->client.icccm.class);
}
if (!bd->desktop)
{
/* libreoffice and maybe others match window class
with .desktop file name */
if (bd->client.icccm.class)
{
char buf[128];
snprintf(buf, sizeof(buf), "%s.desktop", bd->client.icccm.class);
bd->desktop = efreet_util_desktop_file_id_find(buf);
}
}
if (!bd->desktop)
{
bd->desktop = e_exec_startup_id_pid_find(bd->client.netwm.startup_id,