How to ignore app-specific keyboard shortcut for specific windows

I've defined an app-specific keyboard shortcut to close the window under the cursor, but I don't want it to work in the "main" window. Is there a way to filter that somehow? Thanks!

joe

you can try to use a conditional activation group and match for the window title, but it won't work for all situations: