Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: X11 pasting

by dk (Chaplain)
on Dec 29, 2009 at 23:48 UTC ( [id://814848]=note: print w/replies, xml ) Need Help??


in reply to X11 pasting

Just my 5c - I've programmed X11 clipboards using raw Xlib, and I remember that the idea (back then) was that a selection is defined in terms of a program that owns the selection, not text in the clipboard. Rather, the selection usually (i.e. for many of X11 clients, again back then) actualizes as a text chunk only after middle click was pressed. From that point of view, 1 and 3 are ruled out, because by the time middle click is pressed, text extraction procedure would take the current selection, "def", not the one before (technically speaking X11 client can ask for an older selection, but I think no program implements that).

Personally, I find #2 the most logical but least useful, and #4 the most annoying, because it takes into account text cursor position, not mouse position. I think that #3 is the best way to go.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://814848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found