all repos — openbox @ b02947c09fde26756924a03507a750048169c346

openbox fork - make it a bit more like ryudo

client machine and wm_command can be set on the group leader
Dana Jansens danakj@orodu.net
commit

b02947c09fde26756924a03507a750048169c346

parent

9e0dc2aa1c53c3f133c6e4c65d702ab66cef9a7e

1 files changed, 8 insertions(+), 2 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -2079,7 +2079,10 @@ gchar localhost[128];

g_free(self->client_machine); - if (PROP_GETS(self->window, wm_client_machine, locale, &data)) { + if (PROP_GETS(self->window, wm_client_machine, locale, &data) || + (self->group && + PROP_GETS(self->group->leader, wm_client_machine, locale, &data))) + { gethostname(localhost, 127); localhost[127] = '\0'; if (strcmp(localhost, data))

@@ -3598,7 +3601,10 @@

g_free(self->wm_command); self->wm_command = NULL; - if (PROP_GETSS(self->window, wm_command, locale, &data)) { + if (PROP_GETSS(self->window, wm_command, locale, &data) || + (self->group && + PROP_GETSS(self->group->leader, wm_command, locale, &data))) + { /* merge/mash them all together */ gchar *merge = NULL; gint i;