From 0e2d36910612b849ca9c4868910b308c4bf49213 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Mon, 20 Sep 2021 17:09:38 +0300 Subject: xdg-surface: simplify configure mechanism This commit removes any checks whether a configure will change anything and makes configures be sent unconditionally. Additionally, configures are scheduled on xdg_toplevel.{un,}set_{maximized,fullscreen} events. --- include/types/wlr_xdg_shell.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') diff --git a/include/types/wlr_xdg_shell.h b/include/types/wlr_xdg_shell.h index 2afd564e..509b1d2c 100644 --- a/include/types/wlr_xdg_shell.h +++ b/include/types/wlr_xdg_shell.h @@ -13,7 +13,6 @@ struct wlr_xdg_positioner_resource { extern const struct wlr_surface_role xdg_toplevel_surface_role; extern const struct wlr_surface_role xdg_popup_surface_role; -uint32_t schedule_xdg_surface_configure(struct wlr_xdg_surface *surface); struct wlr_xdg_surface *create_xdg_surface( struct wlr_xdg_client *client, struct wlr_surface *surface, uint32_t id); @@ -41,7 +40,6 @@ void send_xdg_toplevel_configure(struct wlr_xdg_surface *surface, struct wlr_xdg_surface_configure *configure); void handle_xdg_toplevel_ack_configure(struct wlr_xdg_surface *surface, struct wlr_xdg_surface_configure *configure); -bool compare_xdg_surface_toplevel_state(struct wlr_xdg_toplevel *state); void destroy_xdg_toplevel(struct wlr_xdg_surface *surface); #endif -- cgit v1.2.3