aboutsummaryrefslogtreecommitdiffstats
path: root/sway/list.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-09 20:10:26 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-09 20:10:26 -0400
commit9f091c7f82a73144b4eb4ca4f5f800c811fbab46 (patch)
tree76726b112e18cc537e080568c7e5df30520a3ed9 /sway/list.c
parentDestroy containers when all views are removed (diff)
downloadsway-9f091c7f82a73144b4eb4ca4f5f800c811fbab46.tar.gz
sway-9f091c7f82a73144b4eb4ca4f5f800c811fbab46.tar.zst
sway-9f091c7f82a73144b4eb4ca4f5f800c811fbab46.zip
Add movement support
Diffstat (limited to 'sway/list.c')
-rw-r--r--sway/list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/list.c b/sway/list.c
index 55052f85..52943efe 100644
--- a/sway/list.c
+++ b/sway/list.c
@@ -28,6 +28,7 @@ void list_add(list_t *list, void *item) {
28} 28}
29 29
30void list_insert(list_t *list, int index, void *item) { 30void list_insert(list_t *list, int index, void *item) {
31 // TODO: Implement this properly
31 if (list->length == list->capacity) { 32 if (list->length == list->capacity) {
32 list->capacity += 10; 33 list->capacity += 10;
33 list->items = realloc(list->items, sizeof(void*) * list->capacity); 34 list->items = realloc(list->items, sizeof(void*) * list->capacity);