Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7124344

[macosx] ClipboardOwner method lostClipboard is not called if app is not focused.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 7u6
    • 7
    • client-libs
    • generic
    • os_x

      http://java.net/jira/browse/MACOSX_PORT-511 submitted 2011/10/06 by Yuri Nesterenko
      Run the attached small example: it takes system clipboard, put there a string and does show a Frame.
      Take someway the system clipboard from elsewhere (Command+C or Copy in a terminal). On other platforms it will trigger lostOwnership() call in java virtually immediately (you will see some printout) – without refocusing of Java application – but on Mac it only calls that method if Java application is the foreground one (you have to click the frame).
      It is also JDK6 behavior on Mac, it seems.
      I've a test running two JVMs without any graphical part (not the attached one). In both processes there is a distinct ClipboardOwner, and neither lostClipboard is called.

            kizune Alexander Zuev
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: