Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
console.lua: hide the cursor when unfocused
This is commonly done to understand whether a window is focused. This explicitly checks if focused is false instead of unavailable to not break the cursor where focused is unimplemented like on --vo=drm. The cursor is taller than the input text so it is made transparent instead of completely removing it so that the log doesn't move up and down while toggling focus. Alternatively, cheight = opts.font_size * 8 can be changed to 7.
- Loading branch information