aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Andri Yngvason <andri@yngvason.is>2020-12-28 02:07:41 +0000
committerLibravatar Simon Ser <contact@emersion.fr>2021-01-01 19:02:56 +0100
commit98eece53ad87dd3b9a9c96df0714683e12dafe44 (patch)
tree7c4f9c3579c3fb68d55e1fe9ab8ce6b661100dc1 /include
parentRemove create_renderer_func argument (diff)
downloadsway-98eece53ad87dd3b9a9c96df0714683e12dafe44.tar.gz
sway-98eece53ad87dd3b9a9c96df0714683e12dafe44.tar.zst
sway-98eece53ad87dd3b9a9c96df0714683e12dafe44.zip
input: Clean up input_method_relay in seat_destoy()
This fixes a crash that happens when input_method_new or text_method_new events are emitted after the seat has been freed.
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/text_input.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/input/text_input.h b/include/sway/input/text_input.h
index 81915795..6cf9bdb3 100644
--- a/include/sway/input/text_input.h
+++ b/include/sway/input/text_input.h
@@ -53,6 +53,8 @@ struct sway_text_input {
53void sway_input_method_relay_init(struct sway_seat *seat, 53void sway_input_method_relay_init(struct sway_seat *seat,
54 struct sway_input_method_relay *relay); 54 struct sway_input_method_relay *relay);
55 55
56void sway_input_method_relay_finish(struct sway_input_method_relay *relay);
57
56// Updates currently focused surface. Surface must belong to the same seat. 58// Updates currently focused surface. Surface must belong to the same seat.
57void sway_input_method_relay_set_focus(struct sway_input_method_relay *relay, 59void sway_input_method_relay_set_focus(struct sway_input_method_relay *relay,
58 struct wlr_surface *surface); 60 struct wlr_surface *surface);