Thanks @JMichaelTX. I do have this set, but the log still shows a macro triggering every time I switch windows, since the trigger requirements are met.
I'm not sure how much CPU overhead this is creating, maybe I'm being paranoid. I guess I'm just wary that it isn't scalable since more macros like this would probably start slowing things down.
Is there a way to prohibit the triggering of this macro from creating a log item?