Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ./src/jdk-jdk8u102-b14/src/solaris/classes/sun/awt/X11/XTrayIconPeer.java 2016-06-22 01:49:45.000000000 +0000
- +++ /win-src/XTrayIconPeer.java 2016-08-05 17:43:00.252790100 +0000
- @@ -37,6 +37,10 @@
- import java.lang.reflect.InvocationTargetException;
- import sun.util.logging.PlatformLogger;
- +import java.util.Set;
- +import java.lang.InterruptedException;
- +import java.lang.Thread;
- +
- public class XTrayIconPeer implements TrayIconPeer,
- InfoWindow.Balloon.LiveArguments,
- InfoWindow.Tooltip.LiveArguments
- @@ -230,6 +234,17 @@
- }
- if (!isTrayIconDisplayed) {
- + Set<Thread> threadSet = Thread.getAllStackTraces().keySet();
- + for(Thread t:threadSet){
- + if(t.getName().startsWith("Image Fetcher")){
- + try{
- + t.join();
- + }catch(InterruptedException e){
- + //ignore
- + }
- + }
- + }
- +
- addXED(eframeParentID, parentXED, XConstants.StructureNotifyMask);
- isTrayIconDisplayed = true;
- @@ -413,6 +428,8 @@
- void addListeners() {
- canvas.addMouseListener(eventProxy);
- canvas.addMouseMotionListener(eventProxy);
- + eframe.addMouseListener(eventProxy);
- + eframe.addMouseMotionListener(eventProxy);
- }
- long getWindow() {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement