modify xwin.c