A man in a white cap paints a building with its white awnings while looking at it.
A man paints a building.
A man who "paints a building" while looking at it is performing the same activity as a man who "paints a building." as both of them would have to look at what they are doing.
(-x)
(-x)