diff options
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/container.c b/sway/container.c index 3cf9e47a..4321b6ce 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -48,7 +48,7 @@ static void add_output_widths(swayc_t *container, void *_width) { | |||
48 | swayc_t *new_output(wlc_handle handle) { | 48 | swayc_t *new_output(wlc_handle handle) { |
49 | const struct wlc_size* size = wlc_output_get_resolution(handle); | 49 | const struct wlc_size* size = wlc_output_get_resolution(handle); |
50 | const char *name = wlc_output_get_name(handle); | 50 | const char *name = wlc_output_get_name(handle); |
51 | sway_log(L_DEBUG, "Added output %d %s", handle, name); | 51 | sway_log(L_DEBUG, "Added output %u %s", (unsigned int)handle, name); |
52 | 52 | ||
53 | swayc_t *output = new_swayc(C_OUTPUT); | 53 | swayc_t *output = new_swayc(C_OUTPUT); |
54 | output->width = size->w; | 54 | output->width = size->w; |
@@ -73,7 +73,7 @@ swayc_t *new_output(wlc_handle handle) { | |||
73 | } | 73 | } |
74 | 74 | ||
75 | swayc_t *new_workspace(swayc_t * output, const char *name) { | 75 | swayc_t *new_workspace(swayc_t * output, const char *name) { |
76 | sway_log(L_DEBUG, "Added workspace %s for output %d", name, output->handle); | 76 | sway_log(L_DEBUG, "Added workspace %s for output %u", name, (unsigned int)output->handle); |
77 | swayc_t *workspace = new_swayc(C_WORKSPACE); | 77 | swayc_t *workspace = new_swayc(C_WORKSPACE); |
78 | 78 | ||
79 | workspace->layout = L_HORIZ; // TODO:default layout | 79 | workspace->layout = L_HORIZ; // TODO:default layout |
@@ -127,8 +127,8 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout) { | |||
127 | swayc_t *new_view(swayc_t *sibling, wlc_handle handle) { | 127 | swayc_t *new_view(swayc_t *sibling, wlc_handle handle) { |
128 | const char *title = wlc_view_get_title(handle); | 128 | const char *title = wlc_view_get_title(handle); |
129 | swayc_t *view = new_swayc(C_VIEW); | 129 | swayc_t *view = new_swayc(C_VIEW); |
130 | sway_log(L_DEBUG, "Adding new view %d:%s to container %p %d", | 130 | sway_log(L_DEBUG, "Adding new view %u:%s to container %p %d", |
131 | handle, title, sibling, sibling?sibling->type:0); | 131 | (unsigned int)handle, title, sibling, sibling?sibling->type:0); |
132 | //Setup values | 132 | //Setup values |
133 | view->handle = handle; | 133 | view->handle = handle; |
134 | view->name = strdup(title); | 134 | view->name = strdup(title); |
@@ -150,7 +150,7 @@ swayc_t *destroy_output(swayc_t *output) { | |||
150 | if (output->children->length == 0) { | 150 | if (output->children->length == 0) { |
151 | //TODO move workspaces to other outputs | 151 | //TODO move workspaces to other outputs |
152 | } | 152 | } |
153 | sway_log(L_DEBUG, "OUTPUT: Destroying output '%d'", output->handle); | 153 | sway_log(L_DEBUG, "OUTPUT: Destroying output '%u'", (unsigned int)output->handle); |
154 | free_swayc(output); | 154 | free_swayc(output); |
155 | return &root_container; | 155 | return &root_container; |
156 | } | 156 | } |