Only show cursor in widgets that need it

Hides the cursor in static widgets like borders or texts. Also,
container widgets like padding or centering now show the cursor
only if their clients would.