]> Dogcows Code - chaz/openbox/commitdiff
client machine and wm_command can be set on the group leader
authorDana Jansens <danakj@orodu.net>
Sun, 6 May 2007 23:37:30 +0000 (23:37 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 6 May 2007 23:37:30 +0000 (23:37 +0000)
openbox/client.c

index f84291c14e6fbc5dc87ce9d25b3cbf78ca19b9a8..3cef307e41de58096533c9110f3bba3f18e2760f 100644 (file)
@@ -2079,7 +2079,10 @@ static void client_get_client_machine(ObClient *self)
 
     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 @@ void client_update_command(ObClient *self)
     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;
This page took 0.027483 seconds and 4 git commands to generate.