[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem copying large text under X
From: |
Kim F. Storm |
Subject: |
Re: Problem copying large text under X |
Date: |
Sat, 06 Nov 2004 02:10:15 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) |
"Jan D." <address@hidden> writes:
> 2004-11-05 kl. 16.58 skrev Kim F. Storm:
>
>>
>> I don't know the details of the protocol, but perhaps emacs could just
>> ignore those extra polls for the clip-board if it hasn't changed and
>> the request has the same originator?
>
> I guess so, but some time limit has to be enforced, after all, the
> same client may very well request the same selection more than once
> (like pasting twice fast in an xterm). Also, Emacs does not currently
> keep track of old requestors.
I tried to force klipper not to autostart, but no luck.
Here is an effective patch that works for me -- I don't know why, but
Klipper seems to use the same requestor value even after I restart KDE.
It is most likely completely non-portable, but could be made portable if
we could identify klipper by its steady stream of requests.
But I guess we shouldn't really spend a lot of time trying to work around
this Klipper bug.
*** 1056,1061 ****
--- 1059,1070 ----
if (event->kind == SELECTION_REQUEST_EVENT)
{
+ /* Klipper */
+ if ((unsigned long) SELECTION_EVENT_REQUESTOR (event) == 0x01a00104)
+ {
+ TRACE0 ("Ignore klipper request");
+ return;
+ }
if (x_queue_selection_requests)
x_queue_event (event);
else
--
Kim F. Storm http://www.cua.dk
- Re: Problem copying large text under X, (continued)
- Re: Problem copying large text under X, Kim F. Storm, 2004/11/03
- Re: Problem copying large text under X, Jan D., 2004/11/03
- Re: Problem copying large text under X, Kim F. Storm, 2004/11/04
- Re: Problem copying large text under X, Jan D., 2004/11/05
- Re: Problem copying large text under X, Richard Stallman, 2004/11/05
- Re: Problem copying large text under X, Kim F. Storm, 2004/11/05
- Re: Problem copying large text under X, Jan D., 2004/11/05
- Re: Problem copying large text under X, Kim F. Storm, 2004/11/05
- Re: Problem copying large text under X, Jan D., 2004/11/06
- Re: Problem copying large text under X, Kim F. Storm, 2004/11/08
- Re: Problem copying large text under X,
Kim F. Storm <=
- Re: Problem copying large text under X, Jan D., 2004/11/06
- Re: Problem copying large text under X, Kim F. Storm, 2004/11/05
- Re: Problem copying large text under X, Richard Stallman, 2004/11/06