From: megacz Date: Fri, 30 Jan 2004 06:50:23 +0000 (+0000) Subject: 2002/09/02 18:37:29 X-Git-Tag: RC3~1545 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=9eab64ce2916a53a431770f93fc5af1affc7ad68 2002/09/02 18:37:29 darcs-hash:20040130065023-2ba56-22e4b58fa60dea9981b6f7ac14fd471b326f5180.gz --- diff --git a/CHANGES b/CHANGES index 73c2879..616b26d 100644 --- a/CHANGES +++ b/CHANGES @@ -393,4 +393,6 @@ 24-Aug megacz POSIX.java: fixed cut/paste bug +02-Sep megacz AWT.java: report corner of window, not corner of decorative frame + diff --git a/src/org/xwt/plat/AWT.java b/src/org/xwt/plat/AWT.java index 1d65bd2..ad67bc0 100644 --- a/src/org/xwt/plat/AWT.java +++ b/src/org/xwt/plat/AWT.java @@ -327,7 +327,7 @@ public class AWT extends Platform { public void windowDeiconified(WindowEvent e) { dirty(0, 0, width, height); Minimized(false); } public void windowActivated(WindowEvent e) { Focused(true); } public void windowDeactivated(WindowEvent e) { Focused(false); } - public void componentMoved(ComponentEvent e) { PosChange(window.getLocation().x, window.getLocation().y); } + public void componentMoved(ComponentEvent e) { PosChange(window.getLocation().x + insets.left, window.getLocation().y + insets.top); } public void componentResized(ComponentEvent e) { // we have to periodically do this; I don't know why