[gtk+/wayland-selections: 10/17] gtkselection: Make the message length limit X11 specific
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wayland-selections: 10/17] gtkselection: Make the message length limit X11 specific
- Date: Fri, 22 Aug 2014 14:13:49 +0000 (UTC)
commit 242f12293da604218ccfa2ed6149f6742a889d13
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Aug 20 21:35:02 2014 +0200
gtkselection: Make the message length limit X11 specific
So it doesn't apply to Wayland.
gtk/gtkselection.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index 1206b68..bd9d22b 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]