surface: Make gdk_surface_set_frame_clock() available
authorBenjamin Otte <otte@redhat.com>
Thu, 20 Apr 2023 21:26:49 +0000 (23:26 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 26 Apr 2023 19:03:34 +0000 (21:03 +0200)
commit13120ccf9d96b50b47039742a0f24a537fc496a1
tree07fd67ccb13589c4837196067fa5f00375de63f3
parenta306401023f8c736e868fe9ed633ab2fef854057
surface: Make gdk_surface_set_frame_clock() available

... to backends.

That way, frame clocks can be constructed by the backends' surface
implementations and dont need to be passed in as construct arguments.

Also add an assertion that they are indeed constructed.
gdk/gdksurface.c
gdk/gdksurfaceprivate.h