From 9eab64ce2916a53a431770f93fc5af1affc7ad68 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:50:23 +0000 Subject: [PATCH] 2002/09/02 18:37:29 darcs-hash:20040130065023-2ba56-22e4b58fa60dea9981b6f7ac14fd471b326f5180.gz --- CHANGES | 2 ++ src/org/xwt/plat/AWT.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 1.7.10.4