2003/09/04 07:16:17
[org.ibex.core.git] / src / org / xwt / plat / X11.cc
index 90d1659..876c9a8 100644 (file)
@@ -15,7 +15,6 @@
 #include <java/lang/String.h>
 #include <org/xwt/Surface.h>
 #include <org/xwt/Picture.h>
-#include <org/xwt/util/JSObject.h>
 #include <org/xwt/Box.h>
 #include <org/xwt/plat/X11.h>
 #include <org/xwt/plat/X11$X11Surface.h>
@@ -578,8 +577,8 @@ void org::xwt::plat::X11$X11Surface::dispatchEvent(gnu::gcj::RawData* ev) {
         int x_out, y_out;
         XConfigureEvent* xce = (XConfigureEvent*)(e);
         XTranslateCoordinates(display, (*((Window*)window)), RootWindow(display, screen_num), 0, 0, &x_out, &y_out, &child);
-        if (xce->width != width || xce->height != height) SizeChange(xce->width, xce->height);
-        if (x_out != root->abs(0) || y_out != root->abs(1)) PosChange(x_out, y_out);
+        if (xce->width != root->width || xce->height != root->height) SizeChange(xce->width, xce->height);
+        if (x_out != root->x || y_out != root->y) PosChange(x_out, y_out);
         
     }
 }