From 2f422e174ea79c9d37cdee83afa1cf3eebbaee98 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 17 Nov 2019 13:20:47 +0100 Subject: X11: Support pasting (almost) arbitrarily long text This is a bit ridiculous, but using a "probably big enough" value seems to be what everyone does. This particular value is the one used by Gtk. --- pugl/detail/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index d9a93c3..cc6eb5d 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -687,7 +687,7 @@ puglDispatchEvents(PuglWorld* world) unsigned long len = 0; unsigned long left = 0; XGetWindowProperty(impl->display, impl->win, XA_PRIMARY, - 0, 8, False, AnyPropertyType, + 0, 0x1FFFFFFF, False, AnyPropertyType, &type, &fmt, &len, &left, &str); if (str && fmt == 8 && type == atoms->UTF8_STRING && left == 0) { -- cgit v1.2.1