Improve changing of cursor color when (un)focused

Connect to the "has-toplevel-focus" property changes instead of "is-active"
property of the GtkWindow, which better handles focus status changes. Also,
add the missing hash-mark for the default unfocused cursor color.

Coincidentally, urgency hints are also better handled by using the
"has-toplevel-focus" property.