multi-seat: enable xcursor theme support again

This commit is contained in:
Daniel Eklöf 2020-07-08 18:08:39 +02:00
parent c470825067
commit be2490022d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 104 additions and 143 deletions

View file

@ -2071,13 +2071,17 @@ term_mouse_grabbed(const struct terminal *term)
/*
* Mouse is grabbed by us, regardless of whether mouse tracking has been enabled or not.
*/
#if 0
return
term->wl->kbd_focus == term &&
term->wl->kbd.shift &&
!term->wl->kbd.alt && /*!term->wl->kbd.ctrl &&*/ !term->wl->kbd.meta;
#endif
return true;
tll_foreach(term->wl->seats, it) {
const struct seat *seat = &it->item;
if (seat->kbd_focus == term &&
seat->kbd.shift &&
!seat->kbd.alt && /*!seat->kbd.ctrl &&*/ !seat->kbd.meta)
{
return true;
}
}
return false;
}
void
@ -2227,7 +2231,8 @@ term_xcursor_update(struct terminal *term)
selection_enabled(term) ? XCURSOR_TEXT :
XCURSOR_LEFT_PTR;
render_xcursor_set(term);
tll_foreach(term->wl->seats, it)
render_xcursor_set(&it->item, term);
}
void