aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-21 07:15:00 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-21 07:15:00 -0400
commit0266b0666a837db946bc9bbb599136da0b569320 (patch)
treed3be929d205f6bfdc045836352284f24b1f5aba6 /sway/ipc.c
parentMerge pull request #101 from Luminarys/master (diff)
downloadsway-0266b0666a837db946bc9bbb599136da0b569320.tar.gz
sway-0266b0666a837db946bc9bbb599136da0b569320.tar.zst
sway-0266b0666a837db946bc9bbb599136da0b569320.zip
Fix compiler warnings (which were really errors)
Diffstat (limited to 'sway/ipc.c')
-rw-r--r--sway/ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/ipc.c b/sway/ipc.c
index 39e580cd..63117def 100644
--- a/sway/ipc.c
+++ b/sway/ipc.c
@@ -288,7 +288,7 @@ void ipc_get_workspaces_callback(swayc_t *container, void *data) {
288 "\"urgent\":%s" 288 "\"urgent\":%s"
289 "}", 289 "}",
290 num, container->name, container->visible ? "true" : "false", container->is_focused ? "true" : "false", 290 num, container->name, container->visible ? "true" : "false", container->is_focused ? "true" : "false",
291 container->x, container->y, container->width, container->height, 291 (int)container->x, (int)container->y, (int)container->width, (int)container->height,
292 container->parent->name, "false" // TODO: urgent hint 292 container->parent->name, "false" // TODO: urgent hint
293 ); 293 );
294 list_add((list_t *)data, json); 294 list_add((list_t *)data, json);
@@ -313,7 +313,7 @@ void ipc_get_outputs_callback(swayc_t *container, void *data) {
313 "\"current_workspace\":\"%s\"" 313 "\"current_workspace\":\"%s\""
314 "}", 314 "}",
315 container->name, "true", "false", // TODO: active, primary 315 container->name, "true", "false", // TODO: active, primary
316 container->x, container->y, container->width, container->height, 316 (int)container->x, (int)container->y, (int)container->width, (int)container->height,
317 container->focused ? container->focused->name : "" 317 container->focused ? container->focused->name : ""
318 ); 318 );
319 list_add((list_t *)data, json); 319 list_add((list_t *)data, json);