diff options
author | Antonin Décimo <antonin.decimo@gmail.com> | 2020-06-04 15:43:42 +0200 |
---|---|---|
committer | Tudor Brindus <me@tbrindus.ca> | 2020-07-30 22:02:42 -0400 |
commit | bbf7b92fe4b34288dbe7c58827a1f69428ffb263 (patch) | |
tree | 2837fac64c52cb5f51cc49367a40099068374de1 /sway/input | |
parent | Log empty value if envvar is not defined (diff) | |
download | sway-bbf7b92fe4b34288dbe7c58827a1f69428ffb263.tar.gz sway-bbf7b92fe4b34288dbe7c58827a1f69428ffb263.tar.zst sway-bbf7b92fe4b34288dbe7c58827a1f69428ffb263.zip |
Fix incorrect format specifiers
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/libinput.c | 4 | ||||
-rw-r--r-- | sway/input/seat.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sway/input/libinput.c b/sway/input/libinput.c index 4ec72882..108fc7b2 100644 --- a/sway/input/libinput.c +++ b/sway/input/libinput.c | |||
@@ -19,7 +19,7 @@ static bool set_send_events(struct libinput_device *device, uint32_t mode) { | |||
19 | if (libinput_device_config_send_events_get_mode(device) == mode) { | 19 | if (libinput_device_config_send_events_get_mode(device) == mode) { |
20 | return false; | 20 | return false; |
21 | } | 21 | } |
22 | sway_log(SWAY_DEBUG, "send_events_set_mode(%d)", mode); | 22 | sway_log(SWAY_DEBUG, "send_events_set_mode(%" PRIu32 ")", mode); |
23 | log_status(libinput_device_config_send_events_set_mode(device, mode)); | 23 | log_status(libinput_device_config_send_events_set_mode(device, mode)); |
24 | return true; | 24 | return true; |
25 | } | 25 | } |
@@ -150,7 +150,7 @@ static bool set_scroll_button(struct libinput_device *dev, uint32_t button) { | |||
150 | libinput_device_config_scroll_get_button(dev) == button) { | 150 | libinput_device_config_scroll_get_button(dev) == button) { |
151 | return false; | 151 | return false; |
152 | } | 152 | } |
153 | sway_log(SWAY_DEBUG, "scroll_set_button(%d)", button); | 153 | sway_log(SWAY_DEBUG, "scroll_set_button(%" PRIu32 ")", button); |
154 | log_status(libinput_device_config_scroll_set_button(dev, button)); | 154 | log_status(libinput_device_config_scroll_set_button(dev, button)); |
155 | return true; | 155 | return true; |
156 | } | 156 | } |
diff --git a/sway/input/seat.c b/sway/input/seat.c index bcf01962..e16d747c 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -916,7 +916,7 @@ void seat_configure_xcursor(struct sway_seat *seat) { | |||
916 | 916 | ||
917 | if (seat == input_manager_get_default_seat()) { | 917 | if (seat == input_manager_get_default_seat()) { |
918 | char cursor_size_fmt[16]; | 918 | char cursor_size_fmt[16]; |
919 | snprintf(cursor_size_fmt, sizeof(cursor_size_fmt), "%d", cursor_size); | 919 | snprintf(cursor_size_fmt, sizeof(cursor_size_fmt), "%u", cursor_size); |
920 | setenv("XCURSOR_SIZE", cursor_size_fmt, 1); | 920 | setenv("XCURSOR_SIZE", cursor_size_fmt, 1); |
921 | if (cursor_theme != NULL) { | 921 | if (cursor_theme != NULL) { |
922 | setenv("XCURSOR_THEME", cursor_theme, 1); | 922 | setenv("XCURSOR_THEME", cursor_theme, 1); |