Changing factory func for X11 windows.