diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-07-31 08:04:20 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-07-31 08:04:20 +0000 |
| commit | 02c15aca65f0e5eb7b82ed3176ab492fe19e6eff (patch) | |
| tree | e84e83f68592bb143ffe514ecddc39455893c16f /openbox/client.c | |
| parent | 07b38ba2c3fb7d63bc09a6221c675e1c1a3afc4d (diff) | |
add a function to retrieve the sm_client_id value
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openbox/client.c b/openbox/client.c index 27854756..1219f15d 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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; +} |
