This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 6122bf24bb42024154be7517810c5ff5f2a0a604
Author: Carsten Haitzler <[email protected]>
AuthorDate: Mon Dec 12 19:03:14 2022 +0000
client - handlie class names with a space and guess first word as dsktp
stolen idea from moksha - wrote it differently :)
@feat
---
src/bin/e_client.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/src/bin/e_client.c b/src/bin/e_client.c
index b969a3cf8..45705bea3 100644
--- a/src/bin/e_client.c
+++ b/src/bin/e_client.c
@@ -2298,6 +2298,29 @@ _e_client_eval(E_Client *ec)
}
}
}
+ if (!ec->desktop && ec->icccm.class)
+ {
+ const char *p = strchr(ec->icccm.class, ' ');
+
+ if (p)
+ {
+ char *sp, *dup = strdup(ec->icccm.class);
+
+ if (dup)
+ {
+ for (sp = dup; *dup; sp++)
+ {
+ if (*sp == ' ')
+ {
+ *sp = 0;
+ break;
+ }
+ }
+ ec->desktop = efreet_util_desktop_exec_find(dup);
+ free(dup);
+ }
+ }
+ }
if (!ec->desktop && ec->icccm.name)
{
/* this works for most cases as fallback. useful when app is
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.