diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-27 17:08:49 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-27 17:08:49 +0000 |
| commit | 1d3498989bb159a56fd9839b686777a9fd3618ba (patch) | |
| tree | 7cb00fb0279cb49cb261a1ab49ca182d28527661 /selection.c | |
| parent | changelog: add new 'unreleased' section (diff) | |
| parent | changelog: move scrollback indicator entries from 1.4.3 to 'unreleased' (diff) | |
Merge branch 'scrollback-position-indicator'
Closes #42
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/selection.c b/selection.c index 354f6f53..ffe06c27 100644 --- a/selection.c +++ b/selection.c @@ -25,9 +25,10 @@ bool selection_enabled(const struct terminal *term, struct seat *seat) { return - term->mouse_tracking == MOUSE_NONE || - term_mouse_grabbed(term, seat) || - term->is_searching; + seat->mouse.col >= 0 && seat->mouse.row >= 0 && + (term->mouse_tracking == MOUSE_NONE || + term_mouse_grabbed(term, seat) || + term->is_searching); } bool |
