Help Needed- How to have a macro ONLY run when a window changes on the Main Display?

I have a macro that resizes any window in a specific application that contains the word "Editor" in the window title. All other windows are left unchanged. This macro works very well but I notice that it is nearly constantly running because on my multiple display setup, I am frequently changing windows, but the kind that have the word "Editor" in them are ONLY ever on what Mac OS recognizes as my Main Display. Instead of having this macro constantly turning on and off looking for changes in windows, I would like it to ONLY look for changes on the Main Display and ignore my other 2 displays. I can't figure out how to constrain the trigger for it to be only monitoring the main display. Does anybody have a suggestion as to what I can add to the actions or Trigger section to have this constraint and thus reduce Keyboard Maestro always having to think about this macro in the background?
Thank you!!

Resize MIDI Editor, Sequence Editor, Quickscribe Editor to fit Raven on window change Macro (v11.0.3)

Resize MIDI Editor- Sequence Editor- Quickscribe Editor to fit Raven on window change.kmmacros (3.9 KB)

You can't -- the "focused window title changes" is an OS event that cares nothing about which display the change occurred on. But triggering a macro is "cheap", resource-wise -- it's what the macro then does that's potentially problematic!

What you can do is limit the damage. Do you need to resize the "Editor" window if it isn't frontmost, for example? If not, don't waste cycles looking at all the windows -- just check the frontmost.

Thank you for the suggestion.
I changed it to Front Window and title contains "Editor"....that should limit KM activity a bit instead of the "Any Window" it previously was. It's a good idea because I only need the resizing to happen when I choose to display this type of window, which would automatically make it the front-most...which should then cause the macro to run. Will try it out in a bit.
Thank you.

Nige already answered, but I would like to point out that a window can span two displays, so it's technically impossible to return a single display when asking the question, "which display is this app/window on?"