all repos — openbox @ 02c15aca65f0e5eb7b82ed3176ab492fe19e6eff

openbox fork - make it a bit more like ryudo

add a function to retrieve the sm_client_id value
Dana Jansens danakj@orodu.net
commit

02c15aca65f0e5eb7b82ed3176ab492fe19e6eff

parent

07b38ba2c3fb7d63bc09a6221c675e1c1a3afc4d

2 files changed, 11 insertions(+), 0 deletions(-)

jump to
M openbox/client.copenbox/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.hopenbox/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