74 |
|
#endif |
75 |
|
|
76 |
|
|
77 |
– |
// Do we replace PutScrap()? |
78 |
– |
#define REPLACE_PUTSCRAP 1 |
79 |
– |
|
80 |
– |
// Do we replace GetScrap()? |
81 |
– |
#define REPLACE_GETSCRAP 1 |
82 |
– |
|
77 |
|
// Do we want GetScrap() to check for TIMESTAMP and optimize out clipboard syncs? |
78 |
|
#define GETSCRAP_REQUESTS_TIMESTAMP 0 |
79 |
|
|
307 |
|
void PutScrap(uint32 type, void *scrap, int32 length) |
308 |
|
{ |
309 |
|
D(bug("PutScrap type %08lx, data %p, length %ld\n", type, scrap, length)); |
316 |
– |
if (!REPLACE_PUTSCRAP) |
317 |
– |
return; |
310 |
|
if (we_put_this_data) { |
311 |
|
we_put_this_data = false; |
312 |
|
return; |
381 |
|
void GetScrap(void **handle, uint32 type, int32 offset) |
382 |
|
{ |
383 |
|
D(bug("GetScrap handle %p, type %08x, offset %d\n", handle, type, offset)); |
392 |
– |
if (!REPLACE_GETSCRAP) |
393 |
– |
return; |
384 |
|
|
385 |
|
XDisplayLock(); |
386 |
|
do_getscrap(handle, type, offset); |