diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-02 08:52:22 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-02 08:52:22 +0000 |
| commit | eff8481cdc6c37407faaa3167ea6f6897b12f544 (patch) | |
| tree | 70ec70db35ff9877e83b10a24072947158609a96 /selection.c | |
| parent | input: don’t execute mouse bindings when the application is grabbing the mouse (diff) | |
selection: remove selection_enabled()
Its name did not reflect its semantics. Since it was only used in a
single place, “inline” it there, and get rid of it.
Diffstat (limited to 'selection.c')
| -rw-r--r-- | selection.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/selection.c b/selection.c index e9c3fce6..90c6c392 100644 --- a/selection.c +++ b/selection.c @@ -34,16 +34,6 @@ static const char *const mime_type_map[] = { }; bool -selection_enabled(const struct terminal *term, struct seat *seat) -{ - return - seat->mouse.col >= 0 && seat->mouse.row >= 0 && - (term->mouse_tracking == MOUSE_NONE || - term_mouse_grabbed(term, seat) || - term->is_searching); -} - -bool selection_on_rows(const struct terminal *term, int row_start, int row_end) { LOG_DBG("on rows: %d-%d, range: %d-%d (offset=%d)", |
