compositor: Only configure surface when it changes geometry
This commit is contained in:
@@ -1027,15 +1027,14 @@ surface_attach(struct wl_client *client,
|
|||||||
wl_list_insert(es->buffer->resource.destroy_listener_list.prev,
|
wl_list_insert(es->buffer->resource.destroy_listener_list.prev,
|
||||||
&es->buffer_destroy_listener.link);
|
&es->buffer_destroy_listener.link);
|
||||||
|
|
||||||
if (es->visual == NULL)
|
|
||||||
fprintf(stderr, "initial attach for surface %p\n", surface);
|
|
||||||
|
|
||||||
if (es->visual == NULL)
|
if (es->visual == NULL)
|
||||||
wl_list_insert(&es->compositor->surface_list, &es->link);
|
wl_list_insert(&es->compositor->surface_list, &es->link);
|
||||||
|
|
||||||
es->visual = buffer->visual;
|
es->visual = buffer->visual;
|
||||||
wlsc_surface_configure(es, es->x + x, es->y + y,
|
if (x != 0 || y != 0 ||
|
||||||
buffer->width, buffer->height);
|
es->width != buffer->width || es->height != buffer->height)
|
||||||
|
wlsc_surface_configure(es, es->x + x, es->y + y,
|
||||||
|
buffer->width, buffer->height);
|
||||||
|
|
||||||
wlsc_buffer_attach(buffer, surface);
|
wlsc_buffer_attach(buffer, surface);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user