mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-21 06:59:44 -05:00
toplevel-decoration: sync with surface state flow
This commit is contained in:
parent
cc8b4f8fb2
commit
e7109daac8
2 changed files with 62 additions and 19 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue