add a function to retrieve the sm_client_id value

This commit is contained in:
Dana Jansens 2003-07-31 08:04:20 +00:00
parent 07b38ba2c3
commit 02c15aca65
2 changed files with 11 additions and 0 deletions

View 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;
}

View 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