Partial cherry-pick from 5dc3ab Sebastian Kaminski
"dial ... shows focus indication".
Use has_focus() rather than has_visible_focus() as I found
has_visible_focus() to be unreliable.
Passing a double to abs() truncates it to an integer, which is probably
not intended, and also causes fatal errors on clang.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>