[QScintilla] Main selection color is not changed properly in some cases

Phil Thompson phil at riverbankcomputing.com
Wed May 15 10:36:51 BST 2019


On 14/05/2019 22:59, Scener Spanish wrote:
> That's a good advice, I'll try to allocate some time this week with all 
> the
> steps and where I've got stuck, in the meantime... I'm sure you're 
> following
> the other thread but if you don't Neil has explained a little bit about 
> the
> meaning of that variable, pasting literally here:
> 
>  X has the concept of a ‘primary selection’ which is the most recently
>> selected text in any application and which can be pasted by clicking 
>> the
>> middle mouse button.
>>    selBackground2 is the colour used for the background of a
>> non-primary-selection on X. It should never be seen on Windows or 
>> macOS
>> which don’t have primary selections.
>>    When the user makes a selection on X, this is the primary selection 
>> but
>> it should be displayed similarly to other platforms with the colours
>> defined by SCI_SETSELBACK. But you still want a visual distinction 
>> between
>> the primary selection and non-primary-selections (so you see which 
>> text
>> will be used for a middle-click). Therefore the colour of this 
>> selection
>> changes to selBackground2 once a new primary selection is made, 
>> commonly in
>> a different application.
>>    Neil
> 
> 
> Hope this helps... so yeah, this clarifies this indeed a QScintilla bug
> afterall ;)

Thanks - that was the clue I needed. Tonight's snapshot should fix both 
tests.

Phil


More information about the QScintilla mailing list