compositor: fix null dereference
compositor: implement click-to-focus