Ignore:
Timestamp:
Nov 27, 2009, 11:55:14 AM (10 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Restored bell behaviour
File:
1 edited

Legend:

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

    r4021 r4049  
    203203    {
    204204        caca_set_color_ansi(screen_list->cv, CACA_RED, CACA_BLACK);
    205         screen_list->screen[screen_list->pty]->bell = 0;
    206205        screen_list->in_bell--;
     206        screen_list->force_refresh = 1;
     207        if (!screen_list->in_bell)
     208        {
     209            screen_list->was_in_bell = 1;
     210            screen_list->screen[screen_list->pty]->bell = 0;
     211        }
    207212    }
    208213    else
    209214    {
     215        if (screen_list->was_in_bell)
     216        {
     217            screen_list->screen[screen_list->pty]->bell = 0;
     218            screen_list->force_refresh = 1;
     219            screen_list->was_in_bell = 0;
     220            screen_list->changed = 1;
     221        }
    210222        caca_set_color_ansi(screen_list->cv, CACA_LIGHTGREEN, CACA_BLACK);
    211223    }
     
    214226static void wm_box(struct screen_list *screen_list, int pty)
    215227{
    216     if (!screen_list->screen[pty]->changed
    217         && !screen_list->changed)
     228    if (!screen_list->screen[pty]->changed && !screen_list->changed)
    218229        return;
    219230
     
    221232        return;
    222233
     234    /* Color determined by wm_bell() */
    223235    caca_draw_cp437_box(screen_list->cv,
    224236                        screen_list->screen[pty]->x - 1,
     
    396408    {
    397409        wm_refresh_full(screen_list);
    398         screen_list->force_refresh = 0;
     410        // screen_list->force_refresh = 0;
    399411    }
    400412    else
Note: See TracChangeset for help on using the changeset viewer.