mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
input-method-v2: drop unnecessary variable and cast
This commit is contained in:
parent
d6998d36ed
commit
81f5607ad9
1 changed files with 2 additions and 3 deletions
|
@ -82,9 +82,8 @@ static void im_commit(struct wl_client *client, struct wl_resource *resource,
|
||||||
}
|
}
|
||||||
input_method->current = input_method->pending;
|
input_method->current = input_method->pending;
|
||||||
input_method->current_serial = serial;
|
input_method->current_serial = serial;
|
||||||
struct wlr_input_method_v2_state default_state = {0};
|
input_method->pending = (struct wlr_input_method_v2_state){0};
|
||||||
input_method->pending = default_state;
|
wl_signal_emit_mutable(&input_method->events.commit, input_method);
|
||||||
wl_signal_emit_mutable(&input_method->events.commit, (void*)input_method);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void im_commit_string(struct wl_client *client,
|
static void im_commit_string(struct wl_client *client,
|
||||||
|
|
Loading…
Reference in a new issue