mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-28 06:46:38 -04:00
wl_surf: Add invalidated function callback
This commit is contained in:
parent
8d99aae1d1
commit
aa3d0060c2
3 changed files with 67 additions and 0 deletions
11
wayland.h
11
wayland.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue