diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-21 07:15:00 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-21 07:15:00 -0400 |
commit | 0266b0666a837db946bc9bbb599136da0b569320 (patch) | |
tree | d3be929d205f6bfdc045836352284f24b1f5aba6 | |
parent | Merge pull request #101 from Luminarys/master (diff) | |
download | sway-0266b0666a837db946bc9bbb599136da0b569320.tar.gz sway-0266b0666a837db946bc9bbb599136da0b569320.tar.zst sway-0266b0666a837db946bc9bbb599136da0b569320.zip |
Fix compiler warnings (which were really errors)
-rw-r--r-- | sway/ipc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |