diff options
author | llyyr <llyyr.public@gmail.com> | 2024-02-20 20:44:56 +0530 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2024-02-20 16:19:40 +0100 |
commit | d6150b6bb05ff9f59c0162fc2bab1709545fae7f (patch) | |
tree | c762627fbecb4d1ccea5b2f7ea59c24a2157bb76 /sway | |
parent | text_input: Implement input-method popups (diff) | |
download | sway-d6150b6bb05ff9f59c0162fc2bab1709545fae7f.tar.gz sway-d6150b6bb05ff9f59c0162fc2bab1709545fae7f.tar.zst sway-d6150b6bb05ff9f59c0162fc2bab1709545fae7f.zip |
input/text_input: parent wlr_box may be uninitialized
Diffstat (limited to 'sway')
-rw-r--r-- | sway/input/text_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/text_input.c b/sway/input/text_input.c index d80e34ac..ad760a6f 100644 --- a/sway/input/text_input.c +++ b/sway/input/text_input.c | |||
@@ -300,7 +300,7 @@ static void input_popup_update(struct sway_input_popup *popup) { | |||
300 | struct wlr_box cursor_area = text_input->input->current.cursor_rectangle; | 300 | struct wlr_box cursor_area = text_input->input->current.cursor_rectangle; |
301 | 301 | ||
302 | struct wlr_box output_box; | 302 | struct wlr_box output_box; |
303 | struct wlr_box parent; | 303 | struct wlr_box parent = {0}; |
304 | struct wlr_layer_surface_v1 *layer_surface = | 304 | struct wlr_layer_surface_v1 *layer_surface = |
305 | wlr_layer_surface_v1_try_from_wlr_surface(focused_surface); | 305 | wlr_layer_surface_v1_try_from_wlr_surface(focused_surface); |
306 | struct wlr_scene_tree *relative_parent; | 306 | struct wlr_scene_tree *relative_parent; |