mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
Support selection MIME types from wayland to xwayland
This commit is contained in:
parent
62a16a356d
commit
a4094c82c7
2 changed files with 96 additions and 42 deletions
|
|
@ -1118,15 +1118,12 @@ static void xwm_get_resources(struct wlr_xwm *xwm) {
|
|||
xcb_intern_atom(xwm->xcb_conn, 0, strlen(atom_map[i]), atom_map[i]);
|
||||
}
|
||||
for (i = 0; i < ATOM_LAST; i++) {
|
||||
xcb_intern_atom_reply_t *reply;
|
||||
xcb_generic_error_t *error;
|
||||
|
||||
reply = xcb_intern_atom_reply(xwm->xcb_conn, cookies[i], &error);
|
||||
|
||||
xcb_intern_atom_reply_t *reply =
|
||||
xcb_intern_atom_reply(xwm->xcb_conn, cookies[i], &error);
|
||||
if (reply && !error) {
|
||||
xwm->atoms[i] = reply->atom;
|
||||
}
|
||||
|
||||
free(reply);
|
||||
|
||||
if (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue