Update window.c