wlt: toolkit: fix sending two surface.attach() reqs in one frame
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 27 Sep 2012 08:45:20 +0000 (10:45 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 27 Sep 2012 08:45:20 +0000 (10:45 +0200)
commite5855f8b616fe04dd39117414d254d2bb66fd3cb
tree7a95136dd911e696e1ed366d87587a9a970d6227
parent01c97de5bd193241118fc6ed81be176ab49c8f97
wlt: toolkit: fix sending two surface.attach() reqs in one frame

The need_frame and idle_frame logic was slightly wrong. We ended up not
correctly requesting the frame-cb after a _real_ frame-cb. Hence, the
idle-cb did simply send the next attach() request.

This fixes this small race and adds a comment how all this is supposed to
work.

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