To avoid the default name colliding with another file of the same name, it should detect existing files in the directory and propose "name-1". gnome-screenshot does this whether or not it can grab a window name.
To avoid the default name colliding with another file of the same name, it should detect existing files in the directory and propose "name-1". gnome-screenshot does this whether or not it can grab a window name.