Also match on WM_CLASS

With his patch the user input also gets matched on WM_CLASS ("Nautilus", "Gnome-terminal" for example) and not only on window title.