Show cursor only in focused editor

It's confusing that the cursor is visible even when the editor window is not focused.So I fixed it :yellow_heart: 

But there's one problem left: You'll see the flash cursor when you click a different position from the origin position in the unfocused window. I think it's because the cursor becomes visible before its position changes.But I don't know how to fix it.Is it a bug of the core? :(