Changeset 2478 for neercs


Ignore:
Timestamp:
Jun 23, 2008, 4:37:19 PM (12 years ago)
Author:
Pascal Terjan
Message:
  • Don't use the caca_display in refresh_screens, it would make clean detach very hard
Location:
neercs/trunk/src
Files:
3 edited

Legend:

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

    r2477 r2478  
    511511            {
    512512                refresh = 0;
    513                 refresh_screens(cv, dp, screen_list);
     513                refresh_screens(cv, screen_list);
     514                if(screen_list->screen[screen_list->pty]->title)
     515                    caca_set_display_title(dp, screen_list->screen[screen_list->pty]->title);
     516                else
     517                    caca_set_display_title(dp, PACKAGE_STRING);
    514518                caca_refresh_display(dp);
    515519            }
  • neercs/trunk/src/neercs.h

    r2474 r2478  
    130130int set_tty_size(int fd, unsigned int w, unsigned int h);
    131131int update_terms(struct screen_list* screen_list);
    132 void refresh_screens(cucul_canvas_t *cv,
    133                      caca_display_t *dp,
    134                      struct screen_list *screen_list);
     132void refresh_screens(cucul_canvas_t *cv, struct screen_list *screen_list);
    135133int update_screens_contents(struct screen_list* screen_list);
    136134long long get_us(void);
  • neercs/trunk/src/screens.c

    r2473 r2478  
    174174
    175175void refresh_screens(cucul_canvas_t *cv,
    176                      caca_display_t *dp,
    177176                     struct screen_list *screen_list)
    178177{
     
    186185    if(!screen_list->dont_update_coords)
    187186        update_windows_props(cv, screen_list);
    188 
    189     if(screen_list->screen[screen_list->pty]->title)
    190         caca_set_display_title(dp, screen_list->screen[screen_list->pty]->title);
    191     else
    192         caca_set_display_title(dp, PACKAGE_STRING);
    193187
    194188    cucul_set_color_ansi(cv, CUCUL_DEFAULT, CUCUL_DEFAULT);
Note: See TracChangeset for help on using the changeset viewer.