xwayland: create DND window, add DND atom helpers

This commit is contained in:
emersion 2018-03-27 12:04:37 -04:00
parent ac715969ac
commit b6c1760de5
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 88 additions and 4 deletions

View file

@ -56,9 +56,22 @@ const char *atom_map[ATOM_LAST] = {
"_NET_WM_WINDOW_TYPE_DROPDOWN_MENU",
"_NET_WM_WINDOW_TYPE_POPUP_MENU",
"_NET_WM_WINDOW_TYPE_COMBO",
"XdndSelection",
"XdndAware",
"XdndStatus",
"XdndPosition",
"XdndEnter",
"XdndLeave",
"XdndDrop",
"XdndFinished",
"XdndProxy",
"XdndTypeList",
"XdndActionMove",
"XdndActionCopy",
"XdndActionAsk",
"XdndActionPrivate",
};
/* General helpers */
// TODO: replace this with hash table?
static struct wlr_xwayland_surface *lookup_surface(struct wlr_xwm *xwm,
xcb_window_t window_id) {
@ -1531,4 +1544,3 @@ bool xwm_atoms_contains(struct wlr_xwm *xwm, xcb_atom_t *atoms,
return false;
}