mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04:00
wayland: remove selection_override_modmask member
This member is no longer valid - we need to use one from the current key-binding set.
This commit is contained in:
parent
e3683b58fc
commit
876044df8d
3 changed files with 25 additions and 3 deletions
|
|
@ -2859,7 +2859,9 @@ term_mouse_grabbed(const struct terminal *term, const struct seat *seat)
|
|||
xkb_mod_mask_t mods;
|
||||
get_current_modifiers(seat, &mods, NULL, 0);
|
||||
|
||||
const xkb_mod_mask_t override_modmask = seat->kbd.selection_override_modmask;
|
||||
const struct key_binding_set *bindings =
|
||||
key_binding_for(term->wl->key_binding_manager, term, seat);
|
||||
const xkb_mod_mask_t override_modmask = bindings->selection_overrides;
|
||||
bool override_mods_pressed = (mods & override_modmask) == override_modmask;
|
||||
|
||||
return term->mouse_tracking == MOUSE_NONE ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue