mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04:00
[XIM] Fix an unitialized value problem.
This commit is contained in:
parent
ee2ab5b7f9
commit
54aa148a5e
1 changed files with 4 additions and 4 deletions
|
@ -871,10 +871,10 @@ static void open_xim_callback(xcb_xim_t *im, G_GNUC_UNUSED void *user_data) {
|
||||||
RofiViewState *state = rofi_view_get_active();
|
RofiViewState *state = rofi_view_get_active();
|
||||||
uint32_t input_style = XCB_IM_PreeditPosition | XCB_IM_StatusArea;
|
uint32_t input_style = XCB_IM_PreeditPosition | XCB_IM_StatusArea;
|
||||||
xcb_point_t spot;
|
xcb_point_t spot;
|
||||||
spot.x += widget_get_x_pos(&state->text->widget) +
|
spot.x = widget_get_x_pos(&state->text->widget) +
|
||||||
textbox_get_cursor_x_pos(state->text);
|
textbox_get_cursor_x_pos(state->text);
|
||||||
spot.y += widget_get_y_pos(&state->text->widget) +
|
spot.y = widget_get_y_pos(&state->text->widget) +
|
||||||
widget_get_height(&state->text->widget);
|
widget_get_height(&state->text->widget);
|
||||||
xcb_xim_nested_list nested =
|
xcb_xim_nested_list nested =
|
||||||
xcb_xim_create_nested_list(im, XCB_XIM_XNSpotLocation, &spot, NULL);
|
xcb_xim_create_nested_list(im, XCB_XIM_XNSpotLocation, &spot, NULL);
|
||||||
xcb_xim_create_ic(
|
xcb_xim_create_ic(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue