flag wl surfaces as internal during create() based on pid matching
fix T3596
This commit is contained in:
parent
de03be5131
commit
b1e4f3d1da
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue