[BACK]Return to server-fn.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/server-fn.c between version 1.27 and 1.28

version 1.27, 2009/11/04 23:12:43 version 1.28, 2009/11/04 23:29:42
Line 24 
Line 24 
   
 #include "tmux.h"  #include "tmux.h"
   
   void    server_callback_identify(int, short, void *);
   
 void  void
 server_fill_environ(struct session *s, struct environ *env)  server_fill_environ(struct session *s, struct environ *env)
 {  {
Line 353 
Line 355 
         delay = options_get_number(&c->session->options, "display-panes-time");          delay = options_get_number(&c->session->options, "display-panes-time");
         tv.tv_sec = delay / 1000;          tv.tv_sec = delay / 1000;
         tv.tv_usec = (delay % 1000) * 1000L;          tv.tv_usec = (delay % 1000) * 1000L;
   
           evtimer_del(&c->identify_timer);
           evtimer_set(&c->identify_timer, server_callback_identify, c);
           evtimer_add(&c->identify_timer, &tv);
   
         if (gettimeofday(&c->identify_timer, NULL) != 0)  
                 fatal("gettimeofday failed");  
         timeradd(&c->identify_timer, &tv, &c->identify_timer);  
   
         c->flags |= CLIENT_IDENTIFY;          c->flags |= CLIENT_IDENTIFY;
         c->tty.flags |= (TTY_FREEZE|TTY_NOCURSOR);          c->tty.flags |= (TTY_FREEZE|TTY_NOCURSOR);
         server_redraw_client(c);          server_redraw_client(c);
Line 371 
Line 373 
                 c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);                  c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);
                 server_redraw_client(c);                  server_redraw_client(c);
         }          }
   }
   
   void
   server_callback_identify(unused int fd, unused short events, void *data)
   {
           struct client   *c = data;
   
           server_clear_identify(c);
 }  }
   
 void  void

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28