Georg Baum wrote:
Am Donnerstag, 4. Januar 2007 13:07 schrieb Abdelrazak Younes:
Sure I want. The X selection should be filled in only when using the
mouse!
What do you mean by X selection now?
OK, I've read freedesktop now and I see that my preferred behaviour is
not what is recommended. There, they say that a selection is a selection
independently of how this selection was made. So I stand corrected (even
though I would really prefer a distinction). Let's go then for the most
common behaviour. In this case isInternal() is exactly the same as
LCursor::selection.
Let's fix this bloody X selection so that we can go to something else.
We need to fix two things:
1) At middle-button press time, if cur.selection(), do not use
LFUN_PASTE put pasteSelection() directly (which was in your patch for
CutAndPaste.C). If not, then use "LFUN_PRIMARY_SELECTION line"
2) Multiple-View: I agree that we should use the last selection text,
independently of from which view it comes from.
But first thing first, please commit your CutAndPaste.[Ch] cleanup.
If you still don't believe me that isInternal() is not needed please show
me some code that proves that I am wrong.
As I said, I did not clearly read understood what "asynchronous" meant
in this case. Now I understand that the actual "copy" operation must
happens at pasting time (as opposed to with the clipboard where it
happens on explicit request).
Abdel.
Georg