xwm: moveresize events

This commit is contained in:
Tony Crisci 2017-10-27 10:48:09 -04:00
parent 4a106648c4
commit 6a4290b86a
4 changed files with 131 additions and 1 deletions

View file

@ -34,6 +34,8 @@ struct roots_xwayland_surface {
// TODO: Maybe destroy listener should go in roots_view
struct wl_listener destroy;
struct wl_listener request_configure;
struct wl_listener request_move;
struct wl_listener request_resize;
struct wl_listener map_notify;
struct wl_listener unmap_notify;
};

View file

@ -104,6 +104,8 @@ struct wlr_xwayland_surface {
struct {
struct wl_signal destroy;
struct wl_signal request_configure;
struct wl_signal request_move;
struct wl_signal request_resize;
struct wl_signal map_notify;
struct wl_signal unmap_notify;
struct wl_signal set_title;
@ -126,6 +128,16 @@ struct wlr_xwayland_surface_configure_event {
uint16_t width, height;
};
// TODO: maybe add a seat to these
struct wlr_xwayland_move_event {
struct wlr_xwayland_surface *surface;
};
struct wlr_xwayland_resize_event {
struct wlr_xwayland_surface *surface;
uint32_t edges;
};
void wlr_xwayland_destroy(struct wlr_xwayland *wlr_xwayland);
struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display,
struct wlr_compositor *compositor);