diff options
author | David Robillard <d@drobilla.net> | 2019-11-17 13:20:47 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-11-17 13:20:47 +0100 |
commit | 2f422e174ea79c9d37cdee83afa1cf3eebbaee98 (patch) | |
tree | e0805a6c25699a40d8325836385646cb2d34d054 /pugl | |
parent | 50f1188cc780c341d654d8c31d61185326232b54 (diff) | |
download | pugl-2f422e174ea79c9d37cdee83afa1cf3eebbaee98.tar.gz pugl-2f422e174ea79c9d37cdee83afa1cf3eebbaee98.tar.bz2 pugl-2f422e174ea79c9d37cdee83afa1cf3eebbaee98.zip |
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.
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/detail/x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |