From 0266b0666a837db946bc9bbb599136da0b569320 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 21 Aug 2015 07:15:00 -0400 Subject: [PATCH] Fix compiler warnings (which were really errors) --- sway/ipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/ipc.c b/sway/ipc.c index 39e580cd7..63117defc 100644 --- a/sway/ipc.c +++ b/sway/ipc.c @@ -288,7 +288,7 @@ void ipc_get_workspaces_callback(swayc_t *container, void *data) { "\"urgent\":%s" "}", num, container->name, container->visible ? "true" : "false", container->is_focused ? "true" : "false", - container->x, container->y, container->width, container->height, + (int)container->x, (int)container->y, (int)container->width, (int)container->height, container->parent->name, "false" // TODO: urgent hint ); list_add((list_t *)data, json); @@ -313,7 +313,7 @@ void ipc_get_outputs_callback(swayc_t *container, void *data) { "\"current_workspace\":\"%s\"" "}", container->name, "true", "false", // TODO: active, primary - container->x, container->y, container->width, container->height, + (int)container->x, (int)container->y, (int)container->width, (int)container->height, container->focused ? container->focused->name : "" ); list_add((list_t *)data, json);