winex11: Moved the WM_SYSCOMMAND handling to window.c.