mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
surface: replace wlr_surface_set_role_committed with wlr_surface_role
This commit is contained in:
parent
be54278207
commit
33db4263a0
24 changed files with 256 additions and 167 deletions
|
|
@ -13,6 +13,8 @@ struct wlr_client_data_source {
|
|||
struct wl_resource *resource;
|
||||
};
|
||||
|
||||
extern const struct wlr_surface_role drag_icon_surface_role;
|
||||
|
||||
struct wlr_data_offer *data_offer_create(struct wl_client *client,
|
||||
struct wlr_data_source *source, uint32_t version);
|
||||
void data_offer_update_action(struct wlr_data_offer *offer);
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ struct wlr_xdg_positioner_resource {
|
|||
struct wlr_xdg_positioner attrs;
|
||||
};
|
||||
|
||||
#define XDG_TOPLEVEL_ROLE "xdg_toplevel"
|
||||
#define XDG_POPUP_ROLE "xdg_popup"
|
||||
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(
|
||||
|
|
@ -19,6 +19,7 @@ struct wlr_xdg_surface *create_xdg_surface(
|
|||
uint32_t id);
|
||||
void unmap_xdg_surface(struct wlr_xdg_surface *surface);
|
||||
void destroy_xdg_surface(struct wlr_xdg_surface *surface);
|
||||
void handle_xdg_surface_committed(struct wlr_surface *wlr_surface);
|
||||
|
||||
void create_xdg_positioner(struct wlr_xdg_client *client, uint32_t id);
|
||||
struct wlr_xdg_positioner_resource *get_xdg_positioner_from_resource(
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ struct wlr_xdg_positioner_v6_resource {
|
|||
struct wlr_xdg_positioner_v6 attrs;
|
||||
};
|
||||
|
||||
#define XDG_TOPLEVEL_V6_ROLE "xdg_toplevel_v6"
|
||||
#define XDG_POPUP_V6_ROLE "xdg_popup_v6"
|
||||
extern const struct wlr_surface_role xdg_toplevel_v6_surface_role;
|
||||
extern const struct wlr_surface_role xdg_popup_v6_surface_role;
|
||||
|
||||
uint32_t schedule_xdg_surface_v6_configure(struct wlr_xdg_surface_v6 *surface);
|
||||
struct wlr_xdg_surface_v6 *create_xdg_surface_v6(
|
||||
|
|
@ -19,6 +19,7 @@ struct wlr_xdg_surface_v6 *create_xdg_surface_v6(
|
|||
uint32_t id);
|
||||
void unmap_xdg_surface_v6(struct wlr_xdg_surface_v6 *surface);
|
||||
void destroy_xdg_surface_v6(struct wlr_xdg_surface_v6 *surface);
|
||||
void handle_xdg_surface_v6_committed(struct wlr_surface *wlr_surface);
|
||||
|
||||
void create_xdg_positioner_v6(struct wlr_xdg_client_v6 *client, uint32_t id);
|
||||
struct wlr_xdg_positioner_v6_resource *get_xdg_positioner_v6_from_resource(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue