X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FX11.cc;h=876c9a8be4cf5f1110f530a532b37afac5d21b07;hb=315e4f3422651f74f312e38493b58896306de2a8;hp=90d165963b9284d0da38336d50ee6c08ce0925fe;hpb=798082a9cf2856f50f91483da37b5d9661355f00;p=org.ibex.core.git diff --git a/src/org/xwt/plat/X11.cc b/src/org/xwt/plat/X11.cc index 90d1659..876c9a8 100644 --- a/src/org/xwt/plat/X11.cc +++ b/src/org/xwt/plat/X11.cc @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -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); } }