summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-02-19 22:46:13 -0500
committerKristian Høgsberg <krh@bitplanet.net>2012-02-19 22:46:13 -0500
commit31f9d0e8de4f788aaf35fb8072dc290da19b097a (patch)
treefac9430de25a6633195a477dd3d619763df9ac3c
parentd0e2ef7779b0fc70f13a8c2191758f5822bc320a (diff)
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.
-rw-r--r--src/compositor.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/compositor.c b/src/compositor.c
index 8339e6c..5a424fa 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1119,8 +1119,6 @@ surface_attach(struct wl_client *client,
if (!buffer_resource && !es->output)
return;
- weston_surface_damage_below(es);
-
if (es->buffer) {
weston_buffer_post_release(es->buffer);
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)
return;
- if (device->sprite)
- weston_surface_damage_below(device->sprite);
-
if (!buffer_resource && device->sprite->output) {
wl_list_remove(&device->sprite->link);
device->sprite->output = NULL;