Ignore:
Timestamp:
Nov 23, 2009 1:14:36 PM (4 years ago)
Author:
pterjan
Message:
  • Do not redraw borders and title when nothing changed
File:
1 edited

Legend:

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

    r4014 r4018  
    214214static void wm_box(struct screen_list *screen_list, int pty) 
    215215{ 
    216     /* FIXME drawing the box and rewriting the title creates a dirty rectangle 
    217        for the title, even when nothing changed, triggering useless traffic 
    218        between server and client. */ 
     216    if (!screen_list->screen[screen_list->pty]->changed 
     217        && !screen_list->changed) 
     218        return; 
     219 
    219220    if (!screen_list->border_size) 
    220221        return; 
Note: See TracChangeset for help on using the changeset viewer.