diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-09 07:52:11 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-09 07:52:11 +0000 |
| commit | 4e48d550efba98ebecf4b60045004e52c585c52d (patch) | |
| tree | 2bfa3618c2a7277d3402a7ed34a3fc422bc04cdf /selection.c | |
| parent | readme: add multi-seat support to the feature list (diff) | |
multi-seat: improve handling of multiple (mouse) pointers
* xcursor always set for all pointers
* xcursor sometimes not updated when it should be
* mouse grabbed state wasn't per seat, but global (i.e. "does at least
one seat enable mouse grabbing")
* selection enabled state wasn't per seat
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/selection.c b/selection.c index 2c8176dd..f097e37b 100644 --- a/selection.c +++ b/selection.c @@ -21,11 +21,11 @@ #include "vt.h" bool -selection_enabled(const struct terminal *term) +selection_enabled(const struct terminal *term, struct seat *seat) { return term->mouse_tracking == MOUSE_NONE || - term_mouse_grabbed(term) || + term_mouse_grabbed(term, seat) || term->is_searching; } |
