# HG changeset patch # User Karl Heuer # Date 796621201 0 # Node ID 3e309e3f0ad50415aa2ad81e7747ab3519b83117 # Parent 7d4a038bc51184a441c970504433d10bc82bd97d (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. diff -r 7d4a038bc511 -r 3e309e3f0ad5 src/xselect.c --- 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);