fix damage

Change-Id: Ib30441d131bcfca979ae0a9a0044459bf8ede8e9
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Handle the commit protocol better in QtCompositor

Change-Id: I06477ee97ce95dcdb26ca4fae3cf7eeb7f1a2ace
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
Do not call damage or commit before calling attach

We need to check that a buffer has been attached first before calling
damage and commit on the wayland client side.  So now we do in
QWaylandWindow.

Change-Id: I902dc5b479a2af10009de6acb42d6b455a6e4cb5
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Remove unused variable warning

Change-Id: I44aa007126b5da933e6306b82269698cb9bd1b99
Reviewed-by: Andy Nichols <andy.nichols@digia.com>