forked from enlightenment/enlightenment
ignore xwl clients when flagging wl surfaces as internal
fix T4430
This commit is contained in:
parent
b2dee35f41
commit
3a561bb00a
|
@ -1784,7 +1784,7 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
|
||||||
_e_comp_wl_surface_destroy);
|
_e_comp_wl_surface_destroy);
|
||||||
|
|
||||||
wl_client_get_credentials(client, &pid, NULL, NULL);
|
wl_client_get_credentials(client, &pid, NULL, NULL);
|
||||||
if (pid == getpid()) //internal!
|
if ((client != e_comp_wl->xwl_client) && (pid == getpid())) //internal!
|
||||||
ec = e_pixmap_find_client(E_PIXMAP_TYPE_WL, (int64_t)id);
|
ec = e_pixmap_find_client(E_PIXMAP_TYPE_WL, (int64_t)id);
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
|
@ -1818,7 +1818,8 @@ _e_comp_wl_compositor_cb_surface_create(struct wl_client *client, struct wl_reso
|
||||||
ec->client.w = ec->client.h = 1;
|
ec->client.w = ec->client.h = 1;
|
||||||
ec->comp_data->surface = res;
|
ec->comp_data->surface = res;
|
||||||
ec->netwm.pid = pid;
|
ec->netwm.pid = pid;
|
||||||
ec->internal = pid == getpid();
|
if (client != e_comp_wl->xwl_client)
|
||||||
|
ec->internal = pid == getpid();
|
||||||
|
|
||||||
/* set reference to pixmap so we can fetch it later */
|
/* set reference to pixmap so we can fetch it later */
|
||||||
DBG("\tUsing Client: %p", ec);
|
DBG("\tUsing Client: %p", ec);
|
||||||
|
|
Loading…
Reference in New Issue