[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.105 and 1.106

version 1.105, 2017/03/09 17:02:38 version 1.106, 2017/03/09 17:06:35
Line 29 
Line 29 
 #include "tmux.h"  #include "tmux.h"
   
 static struct session   *server_next_session(struct session *);  static struct session   *server_next_session(struct session *);
 static void              server_callback_identify(int, short, void *);  
 static void              server_destroy_session_group(struct session *);  static void              server_destroy_session_group(struct session *);
   
 void  void
Line 403 
Line 402 
                 if (options_get_number (s->options, "destroy-unattached"))                  if (options_get_number (s->options, "destroy-unattached"))
                         session_destroy(s);                          session_destroy(s);
         }          }
 }  
   
 void  
 server_set_identify(struct client *c)  
 {  
         struct timeval  tv;  
         int             delay;  
   
         delay = options_get_number(c->session->options, "display-panes-time");  
         tv.tv_sec = delay / 1000;  
         tv.tv_usec = (delay % 1000) * 1000L;  
   
         if (event_initialized(&c->identify_timer))  
                 evtimer_del(&c->identify_timer);  
         evtimer_set(&c->identify_timer, server_callback_identify, c);  
         evtimer_add(&c->identify_timer, &tv);  
   
         c->flags |= CLIENT_IDENTIFY;  
         c->tty.flags |= (TTY_FREEZE|TTY_NOCURSOR);  
         server_redraw_client(c);  
 }  
   
 void  
 server_clear_identify(struct client *c, struct window_pane *wp)  
 {  
         if (~c->flags & CLIENT_IDENTIFY)  
                 return;  
         c->flags &= ~CLIENT_IDENTIFY;  
   
         if (c->identify_callback != NULL)  
                 c->identify_callback(c, wp);  
   
         c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);  
         server_redraw_client(c);  
 }  
   
 static void  
 server_callback_identify(__unused int fd, __unused short events, void *data)  
 {  
         server_clear_identify(data, NULL);  
 }  }
   
 /* Set stdin callback. */  /* Set stdin callback. */

Legend:
Removed from v.1.105  
changed lines
  Added in v.1.106