XFlush(display);
}
-void org::xwt::plat::POSIX$X11Surface::_dispose() { XDestroyWindow(display, (*((Window*)window))); }
void org::xwt::plat::POSIX$X11Surface::setLocation (jint x, jint y) { XMoveWindow(display, (*((Window*)window)), x, y); }
void org::xwt::plat::POSIX$X11Surface::toFront() { XRaiseWindow(display, (*((Window*)window))); }
void org::xwt::plat::POSIX$X11Surface::toBack() { XLowerWindow(display, (*((Window*)window))); }
+void org::xwt::plat::POSIX$X11Surface::_dispose() {
+ // without this we get phantom messages after the window is gone
+ org::xwt::plat::POSIX::windowToSurfaceMap->remove(new java::lang::Long(*((Window*)window)));
+ XDestroyWindow(display, (*((Window*)window)));
+}
+
void org::xwt::plat::POSIX$X11Surface::setInvisible(jboolean i) {
if (i) XUnmapWindow(display, (*((Window*)window)));
else XMapRaised(display, (*((Window*)window)));