Re: Backward highlight-to-copy misses first characters

2024-11-03 Thread Carsten Haitzler
On Sat, 2 Nov 2024 17:15:28 -0500 Vasily  said:

> Hello
> 
> Recently I noticed that if highlight a text backward, first couple of
> characters don't get into the buffer. It can be observed for example in any
> web browser or text editors. My OS is Ubuntu 22.04 XFCE without Wayland.
> Any thoughts will be appreciated.

It is each client that is responsible for this, not X itself - highlighting is
a local client issue. all the client does it take ownership of the appropriate
selection. when later you paste - the paste target asks the selection owner for
the data. the owner you highlighted in is responsible for delivering it. How it
was highlighted to begin with is entirely on that end, so I assume you've found
a bug in a toolkit used by the apps above to handle all of this (probably GTK).


-- 
- Codito, ergo sum - "I code, therefore I am" --
Carsten Haitzler - ras...@rasterman.com



Re: Backward highlight-to-copy misses first characters

2024-11-03 Thread Robert Heller
One tricky bit relates to pointer resolution, timing, and human hand-eye
coordination issues.  Also, with some text fonts, it can be hard to see where
one letter ends and the next begins.  And then there can be pixel roundoff
error.

At Sun, 3 Nov 2024 14:24:10 -0600 Vasily  wrote:

>
> Carsten,
>
> Thank you very much for this great answer
> I did not know that an application is responsible for providing highlighted 
> content to copy.
>
> Regards.
>
> On 03.11.2024 04:54, Carsten Haitzler wrote:
> > On Sat, 2 Nov 2024 17:15:28 -0500 Vasily  said:
> >
> >> Hello
> >>
> >> Recently I noticed that if highlight a text backward, first couple of
> >> characters don't get into the buffer. It can be observed for example in any
> >> web browser or text editors. My OS is Ubuntu 22.04 XFCE without Wayland.
> >> Any thoughts will be appreciated.
> >
> > It is each client that is responsible for this, not X itself - highlighting 
> > is
> > a local client issue. all the client does it take ownership of the 
> > appropriate
> > selection. when later you paste - the paste target asks the selection owner 
> > for
> > the data. the owner you highlighted in is responsible for delivering it. 
> > How it
> > was highlighted to begin with is entirely on that end, so I assume you've 
> > found
> > a bug in a toolkit used by the apps above to handle all of this (probably 
> > GTK).
> >
> >
>
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services



Re: Backward highlight-to-copy misses first characters

2024-11-03 Thread Robert Heller
It can be 'tricky' to highlight text of a link or text tight up against
images.  If the application is binding another function to the left mouse
button in addition or instead of highlighting, this cn make things hard.

At Sun, 3 Nov 2024 14:24:40 -0600 Vasily  wrote:

>
> Vladimir,
>
> Thank you for your suggestion.
> I made a few tests and it looks like there are only few apps that drop first 
> (and sometime second) character of highlighted text
> One of them is chromium (I am not surprised).
> Kwrite, Lɜafpad, Firefox works as expected
>
> I think this question can be closed.
>
> Regards
> Vasil.
>
> On 03.11.2024 13:19, Vladimir Dergachev wrote:
> >
> > I checked on Ubuntu 22.04 with KDE and I do not see the effect with kwrite.
> >
> > Does kwrite work well for you ? You don't need to switch to KDE window 
> > manager to use kwrite.
> >
> > best
> >
> > Vladimir Dergachev
> >
> > On Sat, 2 Nov 2024, Vasily wrote:
> >
> >> Hello
> >>
> >> Recently I noticed that if highlight a text backward, first couple of 
> >> characters don't get into the buffer.
> >> It can be observed for example in any web browser or text editors.
> >> My OS is Ubuntu 22.04 XFCE without Wayland.
> >> Any thoughts will be appreciated.
> >>
> >> Thank you in advance.
> >>
>
>
>

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services



Re: Backward highlight-to-copy misses first characters

2024-11-03 Thread Vladimir Dergachev



On Sun, 3 Nov 2024, Vasily wrote:


Vladimir,

Thank you for your suggestion.
I made a few tests and it looks like there are only few apps that drop first 
(and sometime second) character of highlighted text

One of them is chromium (I am not surprised).
Kwrite, Lɜafpad, Firefox works as expected


I am curious - besides chromium which other apps drop the characters ? Is 
gimp affected ?


thank you

Vladimir Dergachev



I think this question can be closed.

Regards
Vasil.

On 03.11.2024 13:19, Vladimir Dergachev wrote:


I checked on Ubuntu 22.04 with KDE and I do not see the effect with kwrite.

Does kwrite work well for you ? You don't need to switch to KDE window 
manager to use kwrite.


best

Vladimir Dergachev

On Sat, 2 Nov 2024, Vasily wrote:


Hello

Recently I noticed that if highlight a text backward, first couple of 
characters don't get into the buffer.

It can be observed for example in any web browser or text editors.
My OS is Ubuntu 22.04 XFCE without Wayland.
Any thoughts will be appreciated.

Thank you in advance.



Re: Backward highlight-to-copy misses first characters

2024-11-03 Thread Vladimir Dergachev



I checked on Ubuntu 22.04 with KDE and I do not see the effect with 
kwrite.


Does kwrite work well for you ? You don't need to switch to KDE window 
manager to use kwrite.


best

Vladimir Dergachev

On Sat, 2 Nov 2024, Vasily wrote:


Hello

Recently I noticed that if highlight a text backward, first couple of 
characters don't get into the buffer.

It can be observed for example in any web browser or text editors.
My OS is Ubuntu 22.04 XFCE without Wayland.
Any thoughts will be appreciated.

Thank you in advance.



Re: Backward highlight-to-copy misses first characters

2024-11-03 Thread Vasily

Carsten,

Thank you very much for this great answer
I did not know that an application is responsible for providing highlighted 
content to copy.

Regards.

On 03.11.2024 04:54, Carsten Haitzler wrote:

On Sat, 2 Nov 2024 17:15:28 -0500 Vasily  said:


Hello

Recently I noticed that if highlight a text backward, first couple of
characters don't get into the buffer. It can be observed for example in any
web browser or text editors. My OS is Ubuntu 22.04 XFCE without Wayland.
Any thoughts will be appreciated.


It is each client that is responsible for this, not X itself - highlighting is
a local client issue. all the client does it take ownership of the appropriate
selection. when later you paste - the paste target asks the selection owner for
the data. the owner you highlighted in is responsible for delivering it. How it
was highlighted to begin with is entirely on that end, so I assume you've found
a bug in a toolkit used by the apps above to handle all of this (probably GTK).




Re: Backward highlight-to-copy misses first characters

2024-11-03 Thread Vasily

Vladimir,

Thank you for your suggestion.
I made a few tests and it looks like there are only few apps that drop first 
(and sometime second) character of highlighted text
One of them is chromium (I am not surprised).
Kwrite, Lɜafpad, Firefox works as expected

I think this question can be closed.

Regards
Vasil.

On 03.11.2024 13:19, Vladimir Dergachev wrote:


I checked on Ubuntu 22.04 with KDE and I do not see the effect with kwrite.

Does kwrite work well for you ? You don't need to switch to KDE window manager 
to use kwrite.

best

Vladimir Dergachev

On Sat, 2 Nov 2024, Vasily wrote:


Hello

Recently I noticed that if highlight a text backward, first couple of 
characters don't get into the buffer.
It can be observed for example in any web browser or text editors.
My OS is Ubuntu 22.04 XFCE without Wayland.
Any thoughts will be appreciated.

Thank you in advance.