mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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.
This commit is contained in:
parent
76bab68e70
commit
ab16861e86
2 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue