wlt: toolkit: dont depend on implicit buffer releases
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 11 Jun 2013 16:57:38 +0000 (18:57 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 11 Jun 2013 16:57:38 +0000 (18:57 +0200)
commit3d2d8f5984a5bb9443d9904be8e4d2e4bd94991a
tree770f1f865c79a6b9c48c2b13119a805d40a4a010
parent4e0b9813de9e75b5b487e76aa48799b332555b21
wlt: toolkit: dont depend on implicit buffer releases

Wayland compositors are not required to send buffer release notifications
on an implicit buffer-attach. That is, an attach->commit->commit series
does not cause a buffer-release notification after the second commit.

Hence, send a buffer-attach on every commit that requires a new
buffer-release notification.

For the related wayland-protocol changes, see:
  http://cgit.freedesktop.org/wayland/wayland/commit/?id=7165bf21917ed1c4f5ec823a1e1642a9e83aa984

This fixes a bug where wlterm only redraws the window-content when
resizing (due to explicit buffer-attach calls during redraw).

Reported by: MoD
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/wlt_toolkit.c