changeset 2372:ad7cb938ae08

* xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3; access the display structure directly.
author Jim Blandy <jimb@redhat.com>
date Thu, 25 Mar 1993 23:27:42 +0000
parents 48f808108031
children 60182aa24f56
files src/xselect.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xselect.c	Thu Mar 25 17:56:41 1993 +0000
+++ b/src/xselect.c	Thu Mar 25 23:27:42 1993 +0000
@@ -63,8 +63,11 @@
  */
 #define MAX_SELECTION_QUANTUM 0xFFFFFF
 
-#define SELECTION_QUANTUM(dpy) ((XMaxRequestSize (dpy) << 2) - 100)
-
+#ifdef HAVE_X11R4
+#define SELECTION_QUANTUM(dpy) ((XMaxRequestSize(dpy) << 2) - 100)
+#else
+#define SELECTION_QUANTUM(dpy) (((dpy)->max_request_size << 2) - 100)
+#endif
 
 /* The timestamp of the last input event Emacs received from the X server.  */
 unsigned long last_event_timestamp;