From d7a7d7eabcf6079012f4019086df56c48d819ae4 Mon Sep 17 00:00:00 2001 From: jprocter Date: Sun, 20 Nov 2011 18:44:36 +0000 Subject: [PATCH] (JAL-1004) add mouse listener to internal panel --- src/jalview/gui/Desktop.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 2a72e44..1da4996 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -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 } } } - } /** -- 1.7.10.2