]> Dogcows Code - chaz/openbox/commitdiff
add a function to retrieve the sm_client_id value
authorDana Jansens <danakj@orodu.net>
Thu, 31 Jul 2003 08:04:20 +0000 (08:04 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 Jul 2003 08:04:20 +0000 (08:04 +0000)
openbox/client.c
openbox/client.h

index 278547560d647b535cfc5eaa79ff84c053201406..1219f15d737cd4e5a923ea465fe2ce4fd60c19e9 100644 (file)
@@ -2721,3 +2721,12 @@ ObClient *client_search_transient(ObClient *self, ObClient *search)
     }
     return NULL;
 }
+
+gchar* client_get_sm_client_id(ObClient *self)
+{
+    gchar *id = NULL;
+
+    if (!PROP_GETS(self->window, sm_client_id, locale, &id) && self->group)
+        PROP_GETS(self->group->leader, sm_client_id, locale, &id);
+    return id;
+}
index fe37a7d7c8ef2592043d06e2cdead13da3a64c35..610c8cd4f93e59a03ee3b68bbf5ae9b7d2a35be7 100644 (file)
@@ -469,4 +469,6 @@ void client_set_layer(ObClient *self, int layer);
 
 guint client_monitor(ObClient *self);
 
+gchar* client_get_sm_client_id(ObClient *self);
+
 #endif
This page took 0.027674 seconds and 4 git commands to generate.