Redefine under what circumstances the main window is considered active.

Considered active now as long as isMainWindow is matched instead of key window.

Just a dirty fix in preparations for list rewrites.