Reset the keyboard and pointer focus when attaching a null buffer