summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--platform/x11/pdfapp.c2
-rw-r--r--platform/x11/x11_main.c10
3 files changed, 2 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 838d5565..920f3c6c 100644
--- a/Makefile
+++ b/Makefile
@@ -40,10 +40,6 @@ CFLAGS += $(OPENSSL_CFLAGS)
CFLAGS += $(ZLIB_CFLAGS)
CFLAGS += $(LURATECH_CFLAGS)
-# Disable viewer text input until such time as it's implemented
-# on linux.
-CFLAGS += -DDISABLE_TEXT_INPUT
-
# --- Commands ---
ifneq "$(verbose)" "yes"
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index ce059651..0b0abafc 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -1639,7 +1639,6 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
{
switch (pdf_widget_type(ctx, widget))
{
-#ifdef DISABLE_TEXT_INPUT
case PDF_WIDGET_TYPE_TEXT:
{
char *text = pdf_text_widget_text(ctx, idoc, widget);
@@ -1657,7 +1656,6 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
pdfapp_updatepage(app);
}
break;
-#endif
case PDF_WIDGET_TYPE_LISTBOX:
case PDF_WIDGET_TYPE_COMBOBOX:
{
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c
index c061dc8b..ecd4d809 100644
--- a/platform/x11/x11_main.c
+++ b/platform/x11/x11_main.c
@@ -176,14 +176,8 @@ char *winpassword(pdfapp_t *app, char *filename)
char *wintextinput(pdfapp_t *app, char *inittext, int retry)
{
- static char buf[256];
-
- if (retry)
- return NULL;
-
- printf("> [%s] ", inittext);
- fgets(buf, sizeof buf, stdin);
- return buf;
+ /* We don't support text input on the x11 viewer */
+ return NULL;
}
int winchoiceinput(pdfapp_t *app, int nopts, char *opts[], int *nvals, char *vals[])