aboutsummaryrefslogtreecommitdiffstats
path: root/sway/container.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-17 16:26:26 +0200
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-17 16:51:33 +0200
commitf39034a55f6303c4729a72722a7e1c34d93936af (patch)
treeee675dd29adbc678307fafe1a22163d8b2cf4c4e /sway/container.c
parentAdd support for pango markup (diff)
downloadsway-f39034a55f6303c4729a72722a7e1c34d93936af.tar.gz
sway-f39034a55f6303c4729a72722a7e1c34d93936af.tar.zst
sway-f39034a55f6303c4729a72722a7e1c34d93936af.zip
Use correct format string for x86_64 and i686
Fix #587
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/container.c b/sway/container.c
index a4b2d1c2..95a46632 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -80,13 +80,13 @@ swayc_t *new_output(wlc_handle handle) {
80 swayc_t *op = root_container.children->items[i]; 80 swayc_t *op = root_container.children->items[i];
81 const char *op_name = op->name; 81 const char *op_name = op->name;
82 if (op_name && name && strcmp(op_name, name) == 0) { 82 if (op_name && name && strcmp(op_name, name) == 0) {
83 sway_log(L_DEBUG, "restoring output %lu:%s", handle, op_name); 83 sway_log(L_DEBUG, "restoring output %" PRIuPTR ":%s", handle, op_name);
84 return op; 84 return op;
85 } 85 }
86 } 86 }
87 } 87 }
88 88
89 sway_log(L_DEBUG, "New output %lu:%s", handle, name); 89 sway_log(L_DEBUG, "New output %" PRIuPTR ":%s", handle, name);
90 90
91 struct output_config *oc = NULL, *all = NULL; 91 struct output_config *oc = NULL, *all = NULL;
92 int i; 92 int i;
@@ -254,7 +254,7 @@ swayc_t *new_view(swayc_t *sibling, wlc_handle handle) {
254 } 254 }
255 const char *title = wlc_view_get_title(handle); 255 const char *title = wlc_view_get_title(handle);
256 swayc_t *view = new_swayc(C_VIEW); 256 swayc_t *view = new_swayc(C_VIEW);
257 sway_log(L_DEBUG, "Adding new view %lu:%s to container %p %d", 257 sway_log(L_DEBUG, "Adding new view %" PRIuPTR ":%s to container %p %d",
258 handle, title, sibling, sibling ? sibling->type : 0); 258 handle, title, sibling, sibling ? sibling->type : 0);
259 // Setup values 259 // Setup values
260 view->handle = handle; 260 view->handle = handle;
@@ -292,7 +292,7 @@ swayc_t *new_floating_view(wlc_handle handle) {
292 } 292 }
293 const char *title = wlc_view_get_title(handle); 293 const char *title = wlc_view_get_title(handle);
294 swayc_t *view = new_swayc(C_VIEW); 294 swayc_t *view = new_swayc(C_VIEW);
295 sway_log(L_DEBUG, "Adding new view %lu:%x:%s as a floating view", 295 sway_log(L_DEBUG, "Adding new view %" PRIuPTR ":%x:%s as a floating view",
296 handle, wlc_view_get_type(handle), title); 296 handle, wlc_view_get_type(handle), title);
297 // Setup values 297 // Setup values
298 view->handle = handle; 298 view->handle = handle;
@@ -354,7 +354,7 @@ swayc_t *destroy_output(swayc_t *output) {
354 arrange_windows(root_container.children->items[p], -1, -1); 354 arrange_windows(root_container.children->items[p], -1, -1);
355 } 355 }
356 } 356 }
357 sway_log(L_DEBUG, "OUTPUT: Destroying output '%lu'", output->handle); 357 sway_log(L_DEBUG, "OUTPUT: Destroying output '%" PRIuPTR "'", output->handle);
358 free_swayc(output); 358 free_swayc(output);
359 return &root_container; 359 return &root_container;
360} 360}