add a function to retrieve the sm_client_id value
Dana Jansens danakj@orodu.net
2 files changed,
11 insertions(+),
0 deletions(-)
M
openbox/client.c
→
openbox/client.c
@@ -2721,3 +2721,12 @@ return 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; +}
M
openbox/client.h
→
openbox/client.h
@@ -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