summaryrefslogtreecommitdiffstats
path: root/sway/handlers.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/handlers.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/handlers.c')
-rw-r--r--sway/handlers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index f691ceda..0e8e82a2 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -200,7 +200,7 @@ static bool handle_view_created(wlc_handle handle) {
200 } 200 }
201 } 201 }
202 } 202 }
203 sway_log(L_DEBUG, "handle:%ld type:%x state:%x parent:%ld " 203 sway_log(L_DEBUG, "handle:%" PRIuPTR " type:%x state:%x parent:%" PRIuPTR " "
204 "mask:%d (x:%d y:%d w:%d h:%d) title:%s " 204 "mask:%d (x:%d y:%d w:%d h:%d) title:%s "
205 "class:%s appid:%s", 205 "class:%s appid:%s",
206 handle, wlc_view_get_type(handle), wlc_view_get_state(handle), parent, 206 handle, wlc_view_get_type(handle), wlc_view_get_state(handle), parent,
@@ -277,7 +277,7 @@ static bool handle_view_created(wlc_handle handle) {
277} 277}
278 278
279static void handle_view_destroyed(wlc_handle handle) { 279static void handle_view_destroyed(wlc_handle handle) {
280 sway_log(L_DEBUG, "Destroying window %lu", handle); 280 sway_log(L_DEBUG, "Destroying window %" PRIuPTR, handle);
281 swayc_t *view = swayc_by_handle(handle); 281 swayc_t *view = swayc_by_handle(handle);
282 282
283 // destroy views by type 283 // destroy views by type
@@ -339,7 +339,7 @@ static void handle_view_focus(wlc_handle view, bool focus) {
339} 339}
340 340
341static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry *geometry) { 341static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry *geometry) {
342 sway_log(L_DEBUG, "geometry request for %ld %dx%d @ %d,%d", handle, 342 sway_log(L_DEBUG, "geometry request for %" PRIuPTR " %dx%d @ %d,%d", handle,
343 geometry->size.w, geometry->size.h, geometry->origin.x, geometry->origin.y); 343 geometry->size.w, geometry->size.h, geometry->origin.x, geometry->origin.y);
344 // If the view is floating, then apply the geometry. 344 // If the view is floating, then apply the geometry.
345 // Otherwise save the desired width/height for the view. 345 // Otherwise save the desired width/height for the view.
@@ -366,7 +366,7 @@ static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit s
366 // i3 just lets it become fullscreen 366 // i3 just lets it become fullscreen
367 wlc_view_set_state(view, state, toggle); 367 wlc_view_set_state(view, state, toggle);
368 if (c) { 368 if (c) {
369 sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle); 369 sway_log(L_DEBUG, "setting view %" PRIuPTR " %s, fullscreen %d", view, c->name, toggle);
370 arrange_windows(c->parent, -1, -1); 370 arrange_windows(c->parent, -1, -1);
371 // Set it as focused window for that workspace if its going fullscreen 371 // Set it as focused window for that workspace if its going fullscreen
372 if (toggle) { 372 if (toggle) {