  
          closed = False
          prop_autosize = cv2.getWindowProperty('Frame', cv2.WND_PROP_AUTOSIZE)
          prop_visible = cv2.getWindowProperty('Frame', cv2.WND_PROP_VISIBLE)
          if is_conda and prop_autosize < 1:
              closed = True
          elif is_windows and not is_conda and key == -1:
              closed = True
          elif not is_windows and not is_conda and prop_visible < 1:
              closed = True
 
</s> remove     @staticmethod
    def window_closed(is_windows, is_conda, key):
 </s> add     def window_closed(self, is_windows, is_conda, key):
        if self.arguments.disable_monitor:
            closed = False
        elif is_conda and prop_autosize < 1:
  
          closed = False
          prop_autosize = cv2.getWindowProperty('Frame', cv2.WND_PROP_AUTOSIZE)
          prop_visible = cv2.getWindowProperty('Frame', cv2.WND_PROP_VISIBLE)
        if self.arguments.disable_monitor:
            closed = False
        elif is_conda and prop_autosize < 1:
              closed = True
          elif is_windows and not is_conda and key == -1:
              closed = True
          elif not is_windows and not is_conda and prop_visible < 1:
              closed = True
keep keep keep keep replace keep keep keep keep keep
 Manual Alignments: Ability to disable monitoring of openCV windowstate 
tools/lib_alignments/jobs_manual.py