mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01: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(
|
||||
|
|
|
@ -42,7 +42,7 @@ 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) {
|
||||
zwp_text_input_v3_send_preedit_string(text_input->resource, text,
|
||||
cursor_begin, cursor_end);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue