-
Bug
-
Resolution: Won't Fix
-
P4
-
7
-
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.
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.