set internal win icccm name/class/title during win trap show

wl clients have no concept of icccm name, so this is the only way to set it

also, setting it here makes it available sooner for other functionalities
This commit is contained in:
Mike Blumenkrantz 2015-04-27 13:55:47 -04:00
parent 0d439345c1
commit 59ea27e819
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ _e_elm_win_trap_show(void *data, Evas_Object *o)
ctx->client = e_client_new(cp, 0, 1);
EINA_SAFETY_ON_NULL_RETURN_VAL(ctx->client, EINA_TRUE);
eina_stringshare_replace(&ctx->client->icccm.name, name);
eina_stringshare_replace(&ctx->client->icccm.class, clas);
eina_stringshare_replace(&ctx->client->icccm.title, title);
}
ctx->client->placed = ctx->placed | ctx->centered;
ctx->client->internal_no_remember = ctx->internal_no_remember;