xwayland/xwm: add support for xwayland-shell-v1

This commit is contained in:
Simon Ser 2022-10-18 13:09:17 +02:00 committed by Simon Zeni
parent 85b37127a6
commit 4ff46e6cf9
4 changed files with 77 additions and 1 deletions

View file

@ -21,6 +21,7 @@ struct wlr_drag;
struct wlr_xwayland {
struct wlr_xwayland_server *server;
struct wlr_xwm *xwm;
struct wlr_xwayland_shell_v1 *shell_v1;
struct wlr_xwayland_cursor *cursor;
const char *display_name;
@ -42,6 +43,7 @@ struct wlr_xwayland {
*/
int (*user_event_handler)(struct wlr_xwm *xwm, xcb_generic_event_t *event);
struct wl_listener server_start;
struct wl_listener server_ready;
struct wl_listener server_destroy;
struct wl_listener seat_destroy;
@ -80,6 +82,7 @@ struct wlr_xwayland_surface {
xcb_window_t window_id;
struct wlr_xwm *xwm;
uint32_t surface_id;
uint64_t serial;
struct wl_list link;
struct wl_list stack_link;

View file

@ -17,6 +17,7 @@
enum atom_name {
WL_SURFACE_ID,
WL_SURFACE_SERIAL,
WM_DELETE_WINDOW,
WM_PROTOCOLS,
WM_HINTS,
@ -130,6 +131,7 @@ struct wlr_xwm {
struct wl_listener compositor_new_surface;
struct wl_listener compositor_destroy;
struct wl_listener shell_v1_new_surface;
struct wl_listener seat_set_selection;
struct wl_listener seat_set_primary_selection;
struct wl_listener seat_start_drag;