summaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2016-04-17 11:08:29 -0400
committerDrew DeVault <[email protected]>2016-04-17 11:08:29 -0400
commit083316c5cec77a20d29857b2c2743cbc6ded827b (patch)
treeee675dd29adbc678307fafe1a22163d8b2cf4c4e /sway/handlers.c
parent2a0836e3bd86efc3e6eabc039aace6839684ef63 (diff)
parentf39034a55f6303c4729a72722a7e1c34d93936af (diff)
Merge pull request #590 from mikkeloscar/i686-warnings
Use correct format string for x86_64 and i686
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) {
}
}
}
- sway_log(L_DEBUG, "handle:%ld type:%x state:%x parent:%ld "
+ sway_log(L_DEBUG, "handle:%" PRIuPTR " type:%x state:%x parent:%" PRIuPTR " "
"mask:%d (x:%d y:%d w:%d h:%d) title:%s "
"class:%s appid:%s",
handle, wlc_view_get_type(handle), wlc_view_get_state(handle), parent,
@@ -277,7 +277,7 @@ static bool handle_view_created(wlc_handle handle) {
}
static void handle_view_destroyed(wlc_handle handle) {
- sway_log(L_DEBUG, "Destroying window %lu", handle);
+ sway_log(L_DEBUG, "Destroying window %" PRIuPTR, handle);
swayc_t *view = swayc_by_handle(handle);
// destroy views by type
@@ -339,7 +339,7 @@ static void handle_view_focus(wlc_handle view, bool focus) {
}
static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry *geometry) {
- sway_log(L_DEBUG, "geometry request for %ld %dx%d @ %d,%d", handle,
+ sway_log(L_DEBUG, "geometry request for %" PRIuPTR " %dx%d @ %d,%d", handle,
geometry->size.w, geometry->size.h, geometry->origin.x, geometry->origin.y);
// If the view is floating, then apply the geometry.
// 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
// i3 just lets it become fullscreen
wlc_view_set_state(view, state, toggle);
if (c) {
- sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle);
+ sway_log(L_DEBUG, "setting view %" PRIuPTR " %s, fullscreen %d", view, c->name, toggle);
arrange_windows(c->parent, -1, -1);
// Set it as focused window for that workspace if its going fullscreen
if (toggle) {