summaryrefslogtreecommitdiff
path: root/src/common/backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/backend.c')
-rw-r--r--src/common/backend.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/backend.c b/src/common/backend.c
index d35d243..b15233f 100644
--- a/src/common/backend.c
+++ b/src/common/backend.c
@@ -110,6 +110,13 @@ int yasl_display_modifiers(const struct yasl_display *d)
return d->ops->display_modifiers(d);
}
+int yasl_display_double_click_ms(const struct yasl_display *d)
+{
+ int ms = d && d->ops->display_double_click_ms ? d->ops->display_double_click_ms(d) : 0;
+ /* Reject nonsense from misconfigured settings as well as no answer. */
+ return ms > 0 && ms <= 10000 ? ms : YASL_DOUBLE_CLICK_MS_DEFAULT;
+}
+
void yasl_display_copy(struct yasl_display *d, enum yasl_selection sel, const char *text)
{
if (!d || !d->ops->display_copy || !text ||