bc10638cd9
Apply wl_surface.frame request only on the next wl_surface.commit according to the new protocol. This makes it explicit, which repaint actually triggered the frame callback, since commit schedules a repaint. Otherwise, something causing a repaint before a commit could trigger the frame callback too early. Ensure all demo clients send commit after wl_surface.frame. Note, that GL apps rely on eglSwapBuffers() sending commit. In toytoolkit, it is assumed that window_flush() always does a commit. compositor-wayland assumes renderer->repaint_output does a commit. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>