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>
commitb33bf7f4e4bd9488848276193de1538ed740a981
parent66d884e2891da8e7b5f08e1eb3e4f3723683c405
authorKonstantin Ritt <ritt.ks@gmail.com>
committerKonstantin Ritt <ritt.ks@gmail.com>
commit timeWed, 3 Dec 2025 13:43:50 +0300