Nedit & KDE loss of selection problems

Daniel Eischen eischen at vigrid.com
Tue Jul 31 23:40:18 CEST 2007


On Tue, 31 Jul 2007, Scott Tringali wrote:

> Joerg Fischer wrote:
>
>> shows, there is no need of changing the buffer, but just to
>> temporarily lose the selection.  How can I do this with gedit? Selecting 
>> and deselecting by hand wouldn't be fast enough, I guess.
>
> I wonder if this code is relevant - we are giving up the selection when it's 
> empty.  Maybe that's enough for klipper to think that nobody owns it?  Maybe 
> we can just continue to own it, even though it's empty.
>
>>     /* If we own the selection and the selection is now empty, give it up 
>> */
>>     if (isOwner && !selected) {
>>         XtDisownSelection((Widget)w, XA_PRIMARY, time);
>>         w->text.selectionOwner = False;
>>         return;
>>     }

Nice!  I commented out this section of code in source/textSel.c
and it works with and without Klipper "prevent empty clipboard"
enabled.  I've only done rudimentary testing, but moving text
using the middle mouse button and shifting text left and right
both work without the selection being disabled.

-- 
DE


More information about the Develop mailing list