X11 cut (as cut/paste) accuracy

Carsten Haitzler raster at rasterman.com
Mon Jan 31 13:38:40 UTC 2022


On Mon, 31 Jan 2022 04:50:16 +0100 Phi Debian <phi.debian at gmail.com> said:

There is no X option for this. In fact it's not even an "X thing". It's
totally up to each toolkit OR app (if the app builds its own toolkit like
firefox, chromium and libreoffice etc. tend to do). So GTK+, Qt, EFL, Java's
AWT, Wine (mimics windows behaviour), Motif, Xt/Xaw etc. etc. all do this in
whatever way they think is right, thus every app may be subtly different
depending on the "toolkit". They may or may not provide any settings for this
(I don't remember ever seeing any such config - but I have never looked for it
explicitly).

> Hi All,
> 
> I am not subscribed, let me know if I need to, to post a question.
> 
> I have difficulties to select my text with a mouse (cut/paste) at a line
> start, and in a less extend to a midlle line char. I got the filling that
> to select a start char on a line you must be 'close' to its left edge, my
> font are small, and the window manager have a fuzzy area on the edge to be
> able to grab the thin window border (resize), i.e the window border spill
> over the char start, making it almost impossible to cut the 1st char of the
> line in one shot, the work around is to activate the window my clicking on
> it the window manager release the fuzzy area and now you can select the
> text still with the same difficutlies as middle line chars.
> 
> For middle line char you got to be close to the left edge of a char to cut
> it, beeing closer to the left edge miss the cut.
> 
> Here is with a drawing what I feel.
> 
> A char drawing area.
> +---o---o---+
> |---o---o---|
> |---o---o---|
> |---o---o---|
> |---o---o---|
> +---o---o---+
>   ^   ^   ^
>   |   |   +--<-- Click here miss the selection (next char is selected as
> select start)
>   |   +--<---<-- Ditto
>   +--<---<---<-- Success
> 
> My question is, is there an X option (setup) to define where in a char you
> got to be to make the select a success even if you are closer to the right
> part of a char.
> 
> If not settable how hard would it be to make a local patch ?
> I am ignorant regarding the X11 code, don't know how hard/easy it is to
> build on linux, where to start looking for that.
> 
> Thanx in advance for your help
> 
> Cheers,


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - raster at rasterman.com



More information about the xorg mailing list