Changeset 3434


Ignore:
Timestamp:
May 8, 2009, 2:15:48 AM (11 years ago)
Author:
Pascal Terjan
Message:
  • Redraw once when getting in visual bell and once after, only
Location:
neercs/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/server.c

    r3432 r3434  
    163163{
    164164    int i;
    165     int eof = 0, refresh = 1, command = 0;
     165    int eof = 0, refresh = 1, command = 0, was_in_bell = 0;
    166166    long long unsigned int last_key_time = 0;
    167167    int mainret = 0;
     
    361361        else
    362362        {
    363             if((refresh || screen_list->in_bell) &&
     363            if((refresh || screen_list->in_bell || was_in_bell) &&
    364364               (get_us() - last_key_time < screen_list->screensaver_timeout))
    365365            {
     366                was_in_bell = screen_list->in_bell;
    366367                refresh_screens(screen_list);
    367368                set_title(screen_list);
     
    389390        }
    390391
    391         if(refresh)
     392        if(refresh)
    392393        {
    393394            if(screen_list->attached)
  • neercs/trunk/src/term.c

    r2995 r3434  
    135135        else if(buffer[i] == '\a')
    136136        {
    137             screen_list->in_bell = 10;
    138             sc->bell = 10;
     137            screen_list->in_bell++;
     138            sc->bell = 1;
    139139        }
    140140
Note: See TracChangeset for help on using the changeset viewer.