aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-12-18 11:14:08 +0100
committerSimon Ser <contact@emersion.fr>2023-12-18 11:14:08 +0100
commit81f5607ad9afb7c9a8c52a8258145da8c82e8a16 (patch)
tree87a37314685ff096de5be3471b3df8ad3fbdf1bc
parentd6998d36ed20a2f67a1714f96fd581d6dc0090a0 (diff)
input-method-v2: drop unnecessary variable and cast
-rw-r--r--types/wlr_input_method_v2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/types/wlr_input_method_v2.c b/types/wlr_input_method_v2.c
index 0e6a18ba..18e2a58e 100644
--- a/types/wlr_input_method_v2.c
+++ b/types/wlr_input_method_v2.c
@@ -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_serial = serial;
- struct wlr_input_method_v2_state default_state = {0};
- input_method->pending = default_state;
- wl_signal_emit_mutable(&input_method->events.commit, (void*)input_method);
+ input_method->pending = (struct wlr_input_method_v2_state){0};
+ wl_signal_emit_mutable(&input_method->events.commit, input_method);
}
static void im_commit_string(struct wl_client *client,