Mercurial > emacs
changeset 11161:3e309e3f0ad5
(Fx_store_cut_buffer_internal): Use the flag in the
frame's x_display_info, not a global flag.
(Fx_rotate_cut_buffers_internal): Likewise.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 31 Mar 1995 03:40:01 +0000 |
parents | 7d4a038bc511 |
children | 95b70c82ec51 |
files | src/xselect.c |
diffstat | 1 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xselect.c Fri Mar 31 01:56:18 1995 +0000 +++ b/src/xselect.c Fri Mar 31 03:40:01 1995 +0000 @@ -1902,8 +1902,6 @@ #ifdef CUT_BUFFER_SUPPORT -static int cut_buffers_initialized; /* Whether we're sure they all exist */ - /* Ensure that all 8 cut buffers exist. ICCCM says we gotta... */ static void initialize_cut_buffers (display, window) @@ -1924,7 +1922,6 @@ FROB (XA_CUT_BUFFER7); #undef FROB UNBLOCK_INPUT; - cut_buffers_initialized = 1; } @@ -2009,7 +2006,11 @@ bytes = XSTRING (string)->size; bytes_remaining = bytes; - if (! cut_buffers_initialized) initialize_cut_buffers (display, window); + if (! FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized) + { + initialize_cut_buffers (display, window); + FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized = 1; + } BLOCK_INPUT; @@ -2052,8 +2053,11 @@ CHECK_NUMBER (n, 0); if (XINT (n) == 0) return n; - if (! cut_buffers_initialized) - initialize_cut_buffers (display, window); + if (! FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized) + { + initialize_cut_buffers (display, window); + FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized = 1; + } props[0] = XA_CUT_BUFFER0; props[1] = XA_CUT_BUFFER1; @@ -2084,7 +2088,6 @@ defsubr (&Sx_get_cut_buffer_internal); defsubr (&Sx_store_cut_buffer_internal); defsubr (&Sx_rotate_cut_buffers_internal); - cut_buffers_initialized = 0; #endif reading_selection_reply = Fcons (Qnil, Qnil);