xdg-shell: drop automatic surface configuration

Compositors now are expected to wait for an initial commit by checking
wlr_xdg_surface.initial_commit on every surface commit and send
(schedule) configure events manually.
This commit is contained in:
Kirill Primak 2023-11-23 16:10:39 +03:00 committed by Isaac Freund
parent d368028bd5
commit 811ca199c4
6 changed files with 69 additions and 37 deletions

View file

@ -21,7 +21,6 @@ void create_xdg_popup(struct wlr_xdg_surface *surface,
void reset_xdg_popup(struct wlr_xdg_popup *popup);
void destroy_xdg_popup(struct wlr_xdg_popup *popup);
void handle_xdg_popup_client_commit(struct wlr_xdg_popup *popup);
void handle_xdg_popup_committed(struct wlr_xdg_popup *popup);
struct wlr_xdg_popup_configure *send_xdg_popup_configure(
struct wlr_xdg_popup *popup);
void handle_xdg_popup_ack_configure(struct wlr_xdg_popup *popup,
@ -32,7 +31,6 @@ void create_xdg_toplevel(struct wlr_xdg_surface *surface,
void reset_xdg_toplevel(struct wlr_xdg_toplevel *toplevel);
void destroy_xdg_toplevel(struct wlr_xdg_toplevel *toplevel);
void handle_xdg_toplevel_client_commit(struct wlr_xdg_toplevel *toplevel);
void handle_xdg_toplevel_committed(struct wlr_xdg_toplevel *toplevel);
struct wlr_xdg_toplevel_configure *send_xdg_toplevel_configure(
struct wlr_xdg_toplevel *toplevel);
void handle_xdg_toplevel_ack_configure(struct wlr_xdg_toplevel *toplevel,

View file

@ -95,7 +95,6 @@ struct wlr_xdg_popup {
struct wl_list link;
struct wl_resource *resource;
bool sent_initial_configure;
struct wlr_surface *parent;
struct wlr_seat *seat;