summaryrefslogtreecommitdiff
path: root/src/Fl_Message.h
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2022-07-02 15:44:46 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2022-07-02 15:44:46 +0200
commitef72df0dc7c3c48373c52085a855ac6ce6df4868 (patch)
tree778004e96f82e206f04bd20e56c229e349581c65 /src/Fl_Message.h
parentc5556291624eec58ed9de186474dfcc858dca691 (diff)
Improve X11 selection data transfer (INCR) protocol (#451)
This improves reading large selections and fixes one more bug. - Fix reading selection data size of clients that don't send the size. These clients don't respect the ICCCM. Using a default size instead. - Improve memory allocation by pre-allocating at least 4 MB and extending by 4 MB to reduce the number of realloc() operations. This may waste up to 4 MB buffer space but this is only an issue if clients don't send an appropriate size (see above). - Limit the initial allocation to 200 MB in case clients send higher values. This is very unlikely and might be a bug in these clients. Default extension as above would apply anyway. - Add more comments and optional debug statements (commented out). Note: reading selections (clipboard) from other clients using the INCR protocol is implemented but the opposite (providing large selections (clipboard) by using the INCR protocol is not.
Diffstat (limited to 'src/Fl_Message.h')
0 files changed, 0 insertions, 0 deletions