toplevel-decoration: sync with surface state flow

This commit is contained in:
Kirill Primak 2022-02-04 16:31:12 +03:00
parent cc8b4f8fb2
commit e7109daac8
2 changed files with 62 additions and 19 deletions

View file

@ -2,6 +2,7 @@
#define WLR_TYPES_WLR_XDG_DECORATION_V1
#include <wayland-server-core.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_xdg_shell.h>
enum wlr_xdg_toplevel_decoration_v1_mode {
@ -32,6 +33,8 @@ struct wlr_xdg_toplevel_decoration_v1_configure {
struct wlr_xdg_toplevel_decoration_v1_state {
enum wlr_xdg_toplevel_decoration_v1_mode mode;
struct wlr_surface_synced_state synced_state;
};
struct wlr_xdg_toplevel_decoration_v1 {
@ -49,16 +52,17 @@ struct wlr_xdg_toplevel_decoration_v1 {
struct wl_list configure_list; // wlr_xdg_toplevel_decoration_v1_configure::link
struct wlr_surface_synced synced;
struct wl_listener surface_configure;
struct wl_listener surface_ack_configure;
struct wl_listener surface_commit;
struct {
struct wl_signal destroy;
struct wl_signal request_mode;
} events;
struct wl_listener surface_destroy;
struct wl_listener surface_configure;
struct wl_listener surface_ack_configure;
struct wl_listener surface_commit;
void *data;
};