Reset pending surface delta x and y on commit
authorDaniel Stone <daniel@fooishbar.org>
Wed, 7 Nov 2012 06:51:44 +0000 (17:51 +1100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 8 Nov 2012 16:32:29 +0000 (11:32 -0500)
commitb4f4a5980f3514a25a199769ae971ac1ac484664
treea728f5aba213eb17918d383abc390b1225bac22f
parentd8e8271e94286ee1d7dbf10a4a29d8b854b63a55
Reset pending surface delta x and y on commit

The following sequence:
wl_surface::attach(s, b, 1, 2)
wl_surface::commit(s)
wl_surface::commit(s)
would actually result in the surface getting moved by (2,4) as the
pending attach delta wasn't reset on commit, only by another attach.

This only shows up on single-buffered surfaces.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/compositor.c