Properly handle frame callbacks
Current implementation sends a frame callback to notify client
about the buffer attached in the very same commit has been rendered.
Which is totally wrong.
The frame callback's only purpose is to notify client about
the good time to start preparing the **next** frame (if any).
Accordingly to the official specification,
https://wayland.app/protocols/wayland#wl_surface:request:frame
> The frame request will take effect on the next wl_surface.commit.
> The notification will only be posted for one frame unless requested again.
Thus saying, wl_surface.frame+wl_surface.commmit is a perfectly formed
command sequence to get the frame callback. No buffer attach is required!
Change-Id: I22bed4055858a1261e7cc26592109c056a42ffc6
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>