aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-03-25 23:27:42 +0000
committerJim Blandy1993-03-25 23:27:42 +0000
commitc3498e64386cc83fd0d13bb2f069e9379fe597a9 (patch)
tree1cf369d6d9e3418b2bd762f35d3d21b9dbfb3d03 /src
parentc7e466e10bbdcd2cfbc4599b0b2ce6a389677a5c (diff)
downloademacs-c3498e64386cc83fd0d13bb2f069e9379fe597a9.tar.gz
emacs-c3498e64386cc83fd0d13bb2f069e9379fe597a9.zip
* xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3;
access the display structure directly.
Diffstat (limited to 'src')
-rw-r--r--src/xselect.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c
index c57f51604b3..66812bda044 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -63,8 +63,11 @@ Lisp_Object Vx_sent_selection_hooks;
63 */ 63 */
64#define MAX_SELECTION_QUANTUM 0xFFFFFF 64#define MAX_SELECTION_QUANTUM 0xFFFFFF
65 65
66#define SELECTION_QUANTUM(dpy) ((XMaxRequestSize (dpy) << 2) - 100) 66#ifdef HAVE_X11R4
67 67#define SELECTION_QUANTUM(dpy) ((XMaxRequestSize(dpy) << 2) - 100)
68#else
69#define SELECTION_QUANTUM(dpy) (((dpy)->max_request_size << 2) - 100)
70#endif
68 71
69/* The timestamp of the last input event Emacs received from the X server. */ 72/* The timestamp of the last input event Emacs received from the X server. */
70unsigned long last_event_timestamp; 73unsigned long last_event_timestamp;