diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xselect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xselect.c b/src/xselect.c index 293029a042f..28438af226a 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1795,6 +1795,12 @@ DEFUN ("x-store-cut-buffer-internal", Fx_store_cut_buffer_internal, | |||
| 1795 | if (! cut_buffers_initialized) initialize_cut_buffers (display, window); | 1795 | if (! cut_buffers_initialized) initialize_cut_buffers (display, window); |
| 1796 | 1796 | ||
| 1797 | BLOCK_INPUT; | 1797 | BLOCK_INPUT; |
| 1798 | |||
| 1799 | /* Don't mess up with an empty value. */ | ||
| 1800 | if (!bytes_remaining) | ||
| 1801 | XChangeProperty (display, window, buffer_atom, XA_STRING, 8, | ||
| 1802 | PropModeReplace, data, 0); | ||
| 1803 | |||
| 1798 | while (bytes_remaining) | 1804 | while (bytes_remaining) |
| 1799 | { | 1805 | { |
| 1800 | int chunk = (bytes_remaining < max_bytes | 1806 | int chunk = (bytes_remaining < max_bytes |