[RFC] Fix clang analysis warnings. (4)

Continues #1389, #1431, and #1460 .

This fixes **18** warnings in:
- tag.c
- window.c
- eval.c
- screen.c
I verified locally that this works, but I am baffled. Isn't it just comparing pointers? And is it platform independent?