add a function to retrieve the sm_client_id value
This commit is contained in:
parent
07b38ba2c3
commit
02c15aca65
2 changed files with 11 additions and 0 deletions
|
@ -2721,3 +2721,12 @@ ObClient *client_search_transient(ObClient *self, ObClient *search)
|
||||||
}
|
}
|
||||||
return NULL;
|
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;
|
||||||
|
}
|
||||||
|
|
|
@ -469,4 +469,6 @@ void client_set_layer(ObClient *self, int layer);
|
||||||
|
|
||||||
guint client_monitor(ObClient *self);
|
guint client_monitor(ObClient *self);
|
||||||
|
|
||||||
|
gchar* client_get_sm_client_id(ObClient *self);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue