aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2021-11-07 20:14:18 +0100
committerSimon Ser <contact@emersion.fr>2021-11-08 19:56:22 +0000
commitab16861e8670c9d80a6188e7d878bb095c9b56ad (patch)
treed3adf45b18cc5eeca00856255b751a978f17d15a /include/wlr
parent76bab68e701bbdd1ed43e419b4c22a68e2a1db55 (diff)
text-input: fix type of send_preedit_string() args
The protocol uses a signed integer here, which is also what the wlr_input_method_v2_preedit_string struct provides to compositors from the input method protocol. Sway currently just passes those int32_t values directly to this function leading to an implicit conversion.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_text_input_v3.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_text_input_v3.h b/include/wlr/types/wlr_text_input_v3.h
index 53c52a37..c9ee0b22 100644
--- a/include/wlr/types/wlr_text_input_v3.h
+++ b/include/wlr/types/wlr_text_input_v3.h
@@ -87,7 +87,7 @@ void wlr_text_input_v3_send_enter(struct wlr_text_input_v3 *text_input,
// Sends leave to the currently focused surface and clears it
void wlr_text_input_v3_send_leave(struct wlr_text_input_v3 *text_input);
void wlr_text_input_v3_send_preedit_string(struct wlr_text_input_v3 *text_input,
- const char *text, uint32_t cursor_begin, uint32_t cursor_end);
+ const char *text, int32_t cursor_begin, int32_t cursor_end);
void wlr_text_input_v3_send_commit_string(struct wlr_text_input_v3 *text_input,
const char *text);
void wlr_text_input_v3_send_delete_surrounding_text(