Use window class name when window name is not present using XFetchName

Recent versions of Chromium have stopped setting the window name so I fall back to using the
window class name instead.