xwayland: send DND_ENTER

This commit is contained in:
emersion 2018-03-28 12:59:11 -04:00
parent b6c1760de5
commit 0d7a81ccdf
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
7 changed files with 192 additions and 82 deletions

View file

@ -104,6 +104,11 @@ struct wlr_drag {
struct wl_listener source_destroy;
struct wl_listener seat_client_destroy;
struct wl_listener icon_destroy;
struct {
struct wl_signal focus;
struct wl_signal destroy;
} events;
};
/**

View file

@ -187,6 +187,9 @@ struct wlr_seat {
struct wlr_primary_selection_source *primary_selection_source;
uint32_t primary_selection_serial;
struct wlr_drag *drag;
uint32_t drag_serial;
struct wlr_seat_pointer_state pointer_state;
struct wlr_seat_keyboard_state keyboard_state;
struct wlr_seat_touch_state touch_state;
@ -210,6 +213,7 @@ struct wlr_seat {
struct wl_signal selection;
struct wl_signal primary_selection;
struct wl_signal start_drag;
struct wl_signal new_drag_icon;
struct wl_signal destroy;

View file

@ -115,8 +115,7 @@ struct wlr_xwm {
xcb_window_t selection_window;
struct wlr_xwm_selection clipboard_selection;
struct wlr_xwm_selection primary_selection;
xcb_window_t dnd_window;
struct wlr_xwm_selection dnd_selection;
struct wlr_xwayland_surface *focus_surface;
@ -132,6 +131,9 @@ struct wlr_xwm {
struct wl_listener compositor_destroy;
struct wl_listener seat_selection;
struct wl_listener seat_primary_selection;
struct wl_listener seat_start_drag;
struct wl_listener seat_drag_focus;
struct wl_listener seat_drag_destroy;
};
struct wlr_xwm *xwm_create(struct wlr_xwayland *wlr_xwayland);