Mercurial > emacs
comparison src/xselect.c @ 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 | ff870650d188 |
children | b6c62e4abf59 |
comparison
equal
deleted
inserted
replaced
2371:48f808108031 | 2372:ad7cb938ae08 |
---|---|
61 smaller than that, set this. I added this mostly for debugging the | 61 smaller than that, set this. I added this mostly for debugging the |
62 incremental transfer stuff, but it might improve server performance. | 62 incremental transfer stuff, but it might improve server performance. |
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. */ |
70 unsigned long last_event_timestamp; | 73 unsigned long last_event_timestamp; |
71 | 74 |
72 /* This is an association list whose elements are of the form | 75 /* This is an association list whose elements are of the form |