set_active_win (Raggle::Interfaces::NcursesInterface)

    # File raggle, line 3302
          def NcursesInterface::set_active_win(a_win)
            if $wins[$a_win]
              $wins[$a_win].active = false
              $wins[$a_win].refresh
            end

            if $a_win  # append previous window to old_win list
              $old_win << $a_win
            else  # feed window by default
              $old_win << NcursesInterface::get_win_id('feed')
            end
            $a_win = a_win

            $wins[$a_win].active = true
            $wins[$a_win].refresh

            if $config['focus'] == 'auto' &&
               ![NcursesInterface::get_win_id('desc'),
                 NcursesInterface::get_win_id('cat'),
                 NcursesInterface::get_win_id('edit'),
                 NcursesInterface::get_win_id('find')].include?($a_win) &&
               $wins[$a_win].items && $wins[$a_win].items.size > 0
              $wins[$a_win].select_win_item
            end
          end