summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2011-08-01 18:19:06 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2011-08-01 18:19:06 -0400
commit0af29aa2068f733388d4305f13fe455296644c65 (patch)
tree63b8c47140bac0d6f1203f903870e83106f883c2 /src
parent17bac9851baa05f4c7ffd40d7d6bd5e8d867d048 (diff)
Drop buffers field from display structure.
Diffstat (limited to 'src')
-rw-r--r--src/bclient.c4
-rw-r--r--src/dclient.c1
-rw-r--r--src/display.h1
-rw-r--r--src/sclient.c1
4 files changed, 1 insertions, 6 deletions
diff --git a/src/bclient.c b/src/bclient.c
index ba9caf4..02f2f14 100644
--- a/src/bclient.c
+++ b/src/bclient.c
@@ -66,7 +66,7 @@ bclient_position(struct display *d, int x, int y)
static int
bclient_mouse(struct display *d, struct mouse_event *m)
{
- struct buffer *b = LIST_FIRST(&d->buffers);
+ struct buffer *b = d->bg_view->buffer;
/* Update position */
bclient_position(d, m->x, m->y);
@@ -98,8 +98,6 @@ bclient_new(struct buffer *b)
d->type = DISPLAY_BUFFER;
d->client = b->client;
- LIST_INIT(&d->buffers);
- LIST_INSERT_HEAD(&d->buffers, b, display_next);
TAILQ_INIT(&d->views);
d->bg_view = b->bg_view;
diff --git a/src/dclient.c b/src/dclient.c
index 98253d7..7225674 100644
--- a/src/dclient.c
+++ b/src/dclient.c
@@ -185,7 +185,6 @@ dclient_new(void)
sd.type = DISPLAY_DESKTOP;
sd.client = c;
- LIST_INIT(&sd.buffers);
TAILQ_INIT(&sd.views);
return &sd;
diff --git a/src/display.h b/src/display.h
index 453ffbd..f1abc13 100644
--- a/src/display.h
+++ b/src/display.h
@@ -54,7 +54,6 @@ struct display {
struct client *client;
struct client *focus_client;
struct client *mouse_client;
- struct buf_list buffers;
struct view_tailq views;
struct view *bg_view;
struct view *focus_view;
diff --git a/src/sclient.c b/src/sclient.c
index 2d2be70..ca90c7e 100644
--- a/src/sclient.c
+++ b/src/sclient.c
@@ -149,7 +149,6 @@ sclient_new(void)
sd.type = DISPLAY_SERVER;
sd.client = c;
- LIST_INIT(&sd.buffers);
TAILQ_INIT(&sd.views);
return &sd;