set initial surface attrs for internal wl clients

This commit is contained in:
Mike Blumenkrantz 2015-07-02 14:26:02 -04:00
parent fa3c3b0e22
commit 0a5e00488d
1 changed files with 11 additions and 8 deletions

View File

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