Xlib: remove redumdant window management code