diff options
author | emersion <contact@emersion.fr> | 2018-03-27 12:04:37 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-03-27 12:04:37 -0400 |
commit | b6c1760de5952584cb868f491a12addfb9d9c114 (patch) | |
tree | 0ec601b4e1fa2a1ef246f0c7ab8b3384c34aae50 /include/xwayland | |
parent | ac715969ac69ed527321cd6155addd5b62745505 (diff) |
xwayland: create DND window, add DND atom helpers
Diffstat (limited to 'include/xwayland')
-rw-r--r-- | include/xwayland/xwm.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h index 9e21ea3a..81a4df0b 100644 --- a/include/xwayland/xwm.h +++ b/include/xwayland/xwm.h @@ -53,6 +53,20 @@ enum atom_name { NET_WM_WINDOW_TYPE_DROPDOWN_MENU, NET_WM_WINDOW_TYPE_POPUP_MENU, NET_WM_WINDOW_TYPE_COMBO, + DND_SELECTION, + DND_AWARE, + DND_STATUS, + DND_POSITION, + DND_ENTER, + DND_LEAVE, + DND_DROP, + DND_FINISHED, + DND_PROXY, + DND_TYPE_LIST, + DND_ACTION_MOVE, + DND_ACTION_COPY, + DND_ACTION_ASK, + DND_ACTION_PRIVATE, ATOM_LAST, }; @@ -64,6 +78,8 @@ enum net_wm_state_action { NET_WM_STATE_TOGGLE = 2, }; +#define XDND_VERSION 5 + struct wlr_xwm_selection { struct wlr_xwm *xwm; xcb_atom_t atom; @@ -100,6 +116,8 @@ struct wlr_xwm { struct wlr_xwm_selection clipboard_selection; struct wlr_xwm_selection primary_selection; + xcb_window_t dnd_window; + struct wlr_xwayland_surface *focus_surface; struct wl_list surfaces; // wlr_xwayland_surface::link |