flag wl surfaces as internal during create() based on pid matching

fix T3596
This commit is contained in:
Mike Blumenkrantz 2016-05-06 13:52:10 -04:00
parent de03be5131
commit b1e4f3d1da
1 changed files with 8 additions and 9 deletions

View File

@ -1479,15 +1479,14 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
ec = e_client_new(ep, 0, 0);
}
if (ec)
{
if (ec->new_client)
e_comp->new_clients--;
ec->new_client = 0;
if ((!ec->client.w) && (ec->client.h))
ec->client.w = ec->client.h = 1;
ec->comp_data->surface = res;
}
if (ec->new_client)
e_comp->new_clients--;
ec->new_client = 0;
if ((!ec->client.w) && (ec->client.h))
ec->client.w = ec->client.h = 1;
ec->comp_data->surface = res;
ec->netwm.pid = pid;
ec->internal = pid == getpid();
/* set reference to pixmap so we can fetch it later */
DBG("\tUsing Client: %p", ec);