(JAL-1004) add mouse listener to internal panel
authorjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 20 Nov 2011 18:44:36 +0000 (18:44 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Sun, 20 Nov 2011 18:44:36 +0000 (18:44 +0000)
src/jalview/gui/Desktop.java

index 2a72e44..1da4996 100644 (file)
@@ -335,7 +335,8 @@ public class Desktop extends jalview.jbgui.GDesktop implements
       }
     });
 
-    this.addMouseListener(new MouseAdapter()
+    MouseAdapter ma;
+    this.addMouseListener(ma=new MouseAdapter()
     {
       public void mousePressed(MouseEvent evt)
       {
@@ -345,6 +346,8 @@ public class Desktop extends jalview.jbgui.GDesktop implements
         }
       }
     });
+    desktop.addMouseListener(ma);
+   
     this.addFocusListener(new FocusListener()
     {
       
@@ -2052,7 +2055,6 @@ public class Desktop extends jalview.jbgui.GDesktop implements
         }
       }
     }
-
   }
 
   /**