Is it possible to search for both the --class and --name using xdotool?
xdotool search --all --onlyvisible --class "some_val" --name "another val"
The above returns an error because the first condition, --class, already returns window ids before --name can be used to filter the results:
xdotool: Unknown command: --name