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

Diff for /src/usr.bin/tmux/window-client.c between version 1.10 and 1.11

version 1.10, 2017/11/02 21:29:17 version 1.11, 2017/11/02 22:00:42
Line 210 
Line 210 
         }          }
 }  }
   
 static struct screen *  static void
 window_client_draw(__unused void *modedata, void *itemdata, u_int sx, u_int sy)  window_client_draw(__unused void *modedata, void *itemdata,
       struct screen_write_ctx *ctx, u_int sx, u_int sy)
 {  {
         struct window_client_itemdata   *item = itemdata;          struct window_client_itemdata   *item = itemdata;
         struct client                   *c = item->c;          struct client                   *c = item->c;
         struct window_pane              *wp;          struct window_pane              *wp;
         static struct screen             s;          u_int                            cx = ctx->s->cx, cy = ctx->s->cy;
         struct screen_write_ctx          ctx;  
   
         if (c->session == NULL || (c->flags & (CLIENT_DEAD|CLIENT_DETACHING)))          if (c->session == NULL || (c->flags & (CLIENT_DEAD|CLIENT_DETACHING)))
                 return (NULL);                  return;
         wp = c->session->curw->window->active;          wp = c->session->curw->window->active;
   
         screen_init(&s, sx, sy, 0);          screen_write_preview(ctx, &wp->base, sx, sy - 3);
   
         screen_write_start(&ctx, NULL, &s);          screen_write_cursormove(ctx, cx, cy + sy - 2);
         screen_write_clearscreen(&ctx, 8);          screen_write_hline(ctx, sx, 0, 0);
   
         screen_write_preview(&ctx, &wp->base, sx, sy - 3);          screen_write_cursormove(ctx, cx, cy + sy - 1);
   
         screen_write_cursormove(&ctx, 0, sy - 2);  
         screen_write_hline(&ctx, sx, 0, 0);  
   
         screen_write_cursormove(&ctx, 0, sy - 1);  
         if (c->old_status != NULL)          if (c->old_status != NULL)
                 screen_write_fast_copy(&ctx, c->old_status, 0, 0, sx, 1);                  screen_write_fast_copy(ctx, c->old_status, 0, 0, sx, 1);
         else          else
                 screen_write_fast_copy(&ctx, &c->status, 0, 0, sx, 1);                  screen_write_fast_copy(ctx, &c->status, 0, 0, sx, 1);
   
         screen_write_stop(&ctx);  
         return (&s);  
 }  }
   
 static struct screen *  static struct screen *

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11