diff options
author | Amadeusz Sławiński (amade) <amade@asmblr.net> | 2011-01-03 11:55:41 +0100 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2015-06-25 14:24:45 +0200 |
commit | 6aaec7a82c05f1ed3327eae760e5e4d1aae726e3 (patch) | |
tree | 97278f7f3559d83510e6406bdbbafc6fc1cab01e /src/canvas.c | |
parent | fc20046c5be4c4f2d09a658b23fd3d612ad8f881 (diff) | |
download | screen-6aaec7a82c05f1ed3327eae760e5e4d1aae726e3.tar.gz |
*wi -> *win
Diffstat (limited to 'src/canvas.c')
-rw-r--r-- | src/canvas.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/canvas.c b/src/canvas.c index 38c88ab..c696f80 100644 --- a/src/canvas.c +++ b/src/canvas.c @@ -227,7 +227,7 @@ FindCanvas(int x, int y) } void -SetCanvasWindow(struct canvas *cv, struct win *wi) +SetCanvasWindow(struct canvas *cv, struct win *win) { struct win *p = 0, **pp; struct layer *l; @@ -267,17 +267,17 @@ SetCanvasWindow(struct canvas *cv, struct win *wi) } /* find right layer to display on canvas */ - if (wi && wi->w_type != W_TYPE_GROUP) + if (win && win->w_type != W_TYPE_GROUP) { - l = &wi->w_layer; - if (wi->w_savelayer && (wi->w_blocked || wi->w_savelayer->l_cvlist == 0)) - l = wi->w_savelayer; + l = &win->w_layer; + if (win->w_savelayer && (win->w_blocked || win->w_savelayer->l_cvlist == 0)) + l = win->w_savelayer; } else { l = &cv->c_blank; - if (wi) - l->l_data = (char *)wi; + if (win) + l->l_data = (char *)win; else l->l_data = 0; } @@ -294,35 +294,35 @@ SetCanvasWindow(struct canvas *cv, struct win *wi) if (flayer == 0) flayer = l; - if (wi && wi->w_type == W_TYPE_GROUP) + if (win && win->w_type == W_TYPE_GROUP) { /* auto-start windowlist on groups */ struct display *d = display; struct layer *oldflayer = flayer; flayer = l; - display_windows(0, 0, wi); + display_windows(0, 0, win); flayer = oldflayer; display = d; } - if (wi && D_other == wi) - D_other = wi->w_next; /* Might be 0, but that's OK. */ + if (win && D_other == win) + D_other = win->w_next; /* Might be 0, but that's OK. */ if (cv == D_forecv) { - D_fore = wi; + D_fore = win; fore = D_fore; /* XXX ? */ - if (wi) + if (win) { #ifdef MULTIUSER - ObtainAutoWritelock(display, wi); + ObtainAutoWritelock(display, win); #endif /* * Place the window at the head of the most-recently-used list */ - if (windows != wi) + if (windows != win) { for (pp = &windows; (p = *pp); pp = &p->w_next) - if (p == wi) + if (p == win) break; ASSERT(p); *pp = p->w_next; |