forked from AuroraMiddleware/gtk
gtkselection: Ensure the X11 specific message length only applies to X11
Other backends are compilable together with the X11 one, so the message lenght limit was applying to them all. https://bugzilla.gnome.org/show_bug.cgi?id=697855
This commit is contained in:
parent
5fcf2de617
commit
bd410421d8
@ -104,10 +104,12 @@
|
||||
our buffers */
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
#define GTK_SELECTION_MAX_SIZE(display) \
|
||||
GDK_IS_X11_DISPLAY (display) ? \
|
||||
MIN(262144, \
|
||||
XExtendedMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) == 0 \
|
||||
? XMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) - 100 \
|
||||
: XExtendedMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) - 100)
|
||||
: XExtendedMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) - 100)\
|
||||
: G_MAXINT
|
||||
#else
|
||||
/* No chunks on Win32 */
|
||||
#define GTK_SELECTION_MAX_SIZE(display) G_MAXINT
|
||||
|
Loading…
Reference in New Issue
Block a user