#483 Copy & Paste between windows

Program (402)

Open up two windows. Copy something from one window. Now click
once in the other window to bring it to the front, and press Control-V
to paste. Sometimes, it will paste into the *previous* window, which
is still in the background.

However, sometimes I can't seem to duplicate it, so I'm not sure
what's going on. But trust me, it HAS happened.



  • Scott Tringali

    Scott Tringali - 2005-07-19

    Logged In: YES

    When you click in the second, does it have keyboard focus
    (cursor is blinking?)

    Sounds like the input focus has not moved to the second
    window. What's your window manager? What's your focus model?

  • Nobody/Anonymous

    Logged In: NO

    To answer your questions:

    Yes, the second window DOES have keyboard focus (blinking cursor).
    I'm not sure what my window manager or focus model is. I'm using
    MacOS X and logging into a Linux machine through X11. The Linux
    machine is what is running nedit, not the Mac. If you need more details,
    email me at the address at the end of this report.

    In any case, I spent some more time on this, and was able to find a set
    of steps you can follow to reproduce the problem:

    1) Open multiple documents as multiple tabs in one window. (Or create
    new ones.) The point is to have at least 2 tabs in the window.

    2) Go to File and select New Window.

    3) Now click in the original window (the one with multiple tabs) to bring it
    back to the front.

    4) Select some text with the mouse and copy it with Control-V.

    5) Click once in the other window (the new one with nothing in it yet.)

    6) Press Control-V to paste. In fact, press it several times.

    You wiil observe that the contents are pasted in the WRONG window!

    There is also a different problem that might be related, but I can't seem
    to reproduce it consistently. There are times when I press Control-F to
    bring up the Find dialog, and then Control-V to paste text into it, but the
    text is NOT pasted into the Find dialog... it is instead pasted into the
    window behind it! I have tried very hard to duplicte this, and I have
    duplicated it several times, but never in a form that is consistently
    reproducible in terms of a set of steps you could follow to get it to
    happen. If you experiment with selecting and deleting text, Control-C
    (copy), and Control-G (Find again) in various combinations, you will
    eventually run into this problem when you then do Control-F and then

    If you need to contact me, my email is:


    You can reach me at this address until mid-September, 2005.

  • Nobody/Anonymous

    Logged In: NO

    I got a simular problem, but I guess it is my Windows manager setup.

    I can have focus in a NEdit windows, but unless the cursor is somewhere
    over the text area any CONTROL + <anykey> will fail. If I write the text
    appears in the window, but any control statement is ignored if cursor is
    not on the text area.

    I also tried to open two windows. Took a copy from one, selected the
    other but put the cursor back over the first one. Any text written was in
    the newone, but CONTROL + V did nothing. It did not paste in the
    window I had the cursor over either. So its not the same problem, just
    simular. But I guess that its KDE thats tricking me.

  • Eddy De Greef

    Eddy De Greef - 2005-08-17

    Logged In: YES

    The first problem looks like a window manager issue but it
    could also be a Lesstif/Motif issue. What does nedit -V say?

    For the second problem we may have a solution in CVS, but
    you can try switching off the "Synchronize contents of the
    clipboard and the selection" option of the KDE Klipper tool.
    Klipper has caused this kind of problems before.

  • Thorsten Haude

    Thorsten Haude - 2006-09-17

    Logged In: YES

    Can't reproduce problem description of OP, seems to be a Mac
    problem. Nate?

  • Tony Balinski

    Tony Balinski - 2006-10-05

    Logged In: YES

    Is this the same as #1380260? Its anecdotal text implies
    that Vern doesn't know how to reproduce it. I suggest we
    call this a dup of the later one.

  • Thorsten Haude

    Thorsten Haude - 2006-10-05

    Logged In: YES

    >Its anecdotal text implies that Vern doesn't know how to
    >reproduce it.

    I don't understand it that way: "I spent some more time on
    this, and was able to find a set of steps you can follow to
    reproduce the problem: (...)"

    It might be a dupe though (good catch), but I know little of
    Mac OS X window management, so I can't be sure. Anyone?


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks