search for desktops by lowercased icccm class if it's different from uppercase

fixes finding firefox and some others
This commit is contained in:
Mike Blumenkrantz 2013-10-03 11:21:47 +01:00
parent 9210b83e5f
commit fd18b63879
1 changed files with 10 additions and 0 deletions

View File

@ -8963,6 +8963,16 @@ _e_border_eval(E_Border *bd)
snprintf(buf, sizeof(buf), "%s.desktop", bd->client.icccm.class);
bd->desktop = efreet_util_desktop_file_id_find(buf);
}
if (!bd->desktop)
{
char buf[4096] = {0}, *s;
strncpy(buf, bd->client.icccm.class, sizeof(buf));
s = buf;
eina_str_tolower(&s);
if (strcmp(s, bd->client.icccm.class))
bd->desktop = efreet_util_desktop_exec_find(s);
}
}
if (!bd->desktop)
{