xdg-toplevel: change object type in event structs

This commit replaces wlr_xdg_toplevel_*_event::surface with a toplevel
field.
This commit is contained in:
Kirill Primak 2022-01-08 22:52:54 +03:00
parent 1e4c1a3b58
commit e59aa3e0e7
2 changed files with 9 additions and 9 deletions

View file

@ -231,26 +231,26 @@ struct wlr_xdg_surface {
};
struct wlr_xdg_toplevel_move_event {
struct wlr_xdg_surface *surface;
struct wlr_xdg_toplevel *toplevel;
struct wlr_seat_client *seat;
uint32_t serial;
};
struct wlr_xdg_toplevel_resize_event {
struct wlr_xdg_surface *surface;
struct wlr_xdg_toplevel *toplevel;
struct wlr_seat_client *seat;
uint32_t serial;
uint32_t edges;
};
struct wlr_xdg_toplevel_set_fullscreen_event {
struct wlr_xdg_surface *surface;
struct wlr_xdg_toplevel *toplevel;
bool fullscreen;
struct wlr_output *output;
};
struct wlr_xdg_toplevel_show_window_menu_event {
struct wlr_xdg_surface *surface;
struct wlr_xdg_toplevel *toplevel;
struct wlr_seat_client *seat;
uint32_t serial;
uint32_t x, y;