wl_surf: Add invalidated function callback

This commit is contained in:
Alexander Orzechowski 2022-12-04 19:19:48 -05:00
parent 8d99aae1d1
commit aa3d0060c2
3 changed files with 67 additions and 0 deletions

View file

@ -20,6 +20,10 @@
#include <xdg-activation-v1.h>
#endif
#if defined(HAVE_SURFACE_INVALIDATION)
#include <surface-invalidation-v1.h>
#endif
#include <fcft/fcft.h>
#include <tllist.h>
@ -292,6 +296,9 @@ struct monitor {
struct wl_surf {
struct wl_surface *surf;
struct wl_subsurface *sub;
struct terminal *term;
void (*invalidated)(struct terminal *term);
};
struct wl_url {
@ -405,6 +412,10 @@ struct wayland {
struct xdg_activation_v1 *xdg_activation;
#endif
#if defined(HAVE_SURFACE_INVALIDATION)
struct wp_surface_invalidation_manager_v1 *surface_invalidation_manager;
#endif
bool presentation_timings;
struct wp_presentation *presentation;
uint32_t presentation_clock_id;