compositor: Remove redundant weston_surface_damage_below() calls
In the attach case we always end up calling weston_surface_damage_below() through weston_surface_update_transform() if and only if we need it.
This commit is contained in:
@@ -1119,8 +1119,6 @@ surface_attach(struct wl_client *client,
|
|||||||
if (!buffer_resource && !es->output)
|
if (!buffer_resource && !es->output)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
weston_surface_damage_below(es);
|
|
||||||
|
|
||||||
if (es->buffer) {
|
if (es->buffer) {
|
||||||
weston_buffer_post_release(es->buffer);
|
weston_buffer_post_release(es->buffer);
|
||||||
wl_list_remove(&es->buffer_destroy_listener.link);
|
wl_list_remove(&es->buffer_destroy_listener.link);
|
||||||
@@ -1684,9 +1682,6 @@ input_device_attach(struct wl_client *client,
|
|||||||
if (device->input_device.pointer_focus->resource.client != client)
|
if (device->input_device.pointer_focus->resource.client != client)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (device->sprite)
|
|
||||||
weston_surface_damage_below(device->sprite);
|
|
||||||
|
|
||||||
if (!buffer_resource && device->sprite->output) {
|
if (!buffer_resource && device->sprite->output) {
|
||||||
wl_list_remove(&device->sprite->link);
|
wl_list_remove(&device->sprite->link);
|
||||||
device->sprite->output = NULL;
|
device->sprite->output = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user