Advertisement
Guest User

tray_patch.diff

a guest
Aug 6th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.33 KB | None | 0 0
  1. --- ./src/jdk-jdk8u102-b14/src/solaris/classes/sun/awt/X11/XTrayIconPeer.java   2016-06-22 01:49:45.000000000 +0000
  2. +++ /win-src/XTrayIconPeer.java 2016-08-05 17:43:00.252790100 +0000
  3. @@ -37,6 +37,10 @@
  4.  import java.lang.reflect.InvocationTargetException;
  5.  import sun.util.logging.PlatformLogger;
  6.  
  7. +import java.util.Set;
  8. +import java.lang.InterruptedException;
  9. +import java.lang.Thread;
  10. +
  11.  public class XTrayIconPeer implements TrayIconPeer,
  12.         InfoWindow.Balloon.LiveArguments,
  13.         InfoWindow.Tooltip.LiveArguments
  14. @@ -230,6 +234,17 @@
  15.                      }
  16.  
  17.                      if (!isTrayIconDisplayed) {
  18. +                       Set<Thread> threadSet = Thread.getAllStackTraces().keySet();
  19. +                       for(Thread t:threadSet){
  20. +                           if(t.getName().startsWith("Image Fetcher")){
  21. +                               try{
  22. +                                   t.join();
  23. +                               }catch(InterruptedException e){
  24. +                                   //ignore
  25. +                               }
  26. +                           }
  27. +                       }
  28. +                      
  29.                          addXED(eframeParentID, parentXED, XConstants.StructureNotifyMask);
  30.  
  31.                          isTrayIconDisplayed = true;
  32. @@ -413,6 +428,8 @@
  33.      void addListeners() {
  34.          canvas.addMouseListener(eventProxy);
  35.          canvas.addMouseMotionListener(eventProxy);
  36. +        eframe.addMouseListener(eventProxy);
  37. +        eframe.addMouseMotionListener(eventProxy);
  38.      }
  39.  
  40.      long getWindow() {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement