def find_window(current_workspace_only = false)
      @matching_windows = Wmctile.window_list.grep(@regexp_string)
      filter_out_workspaces if current_workspace_only
      if @matching_windows.count > 1
        filter_more_matching_windows
      elsif @matching_windows.count == 1
        @matching_line = @matching_windows[0]
      else
        fail Errors::WindowNotFound, @window_string
      end
      extract_matching_line_information
    end
def find_window(current_workspace_only = false)
      @matching_windows = Wmctile.window_list.grep(@regexp_string)
      filter_out_workspaces if current_workspace_only
      if @matching_windows.count > 1
        filter_more_matching_windows
      elsif @matching_windows.count == 1
        @matching_line = @matching_windows[0]
      else
        fail Errors::WindowNotFound, @window_string
      end
      extract_matching_line_information
    end
Window init function. Tries to find an id.

 @param [Hash] arguments command line options
 @param [String] window_string command line string given


 Filters down the window_list to @matching_windows.

 @param [Boolean] current_workspace_only Should only the current workspace be used?

 @return [void]