The issue here is that middle-click of external material pastes where the cursor WAS, not where one clicks.
Really? If so, it is a bug that should be fixed. The patch looks OK to me. Note that: - lyx paste to where mouse is - many other applicate paste to where cursor is (e.g. gvim) Bo