forked from enlightenment/enlightenment
ignore xwl clients when flagging wl surfaces as internal
fix T4430
This commit is contained in:
parent
0ab755fe81
commit
8647f87199
|
@ -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,6 +1818,7 @@ _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;
|
||||||
|
if (client != e_comp_wl->xwl_client)
|
||||||
ec->internal = pid == getpid();
|
ec->internal = pid == getpid();
|
||||||
|
|
||||||
/* set reference to pixmap so we can fetch it later */
|
/* set reference to pixmap so we can fetch it later */
|
||||||
|
|
Loading…
Reference in New Issue