Fixes freeze on lose focus for XLIB