From 721404a09f6da12e761580b91d6fed81ffdc3d2f Mon Sep 17 00:00:00 2001 From: Tarek Ismail Date: Tue, 10 Dec 2024 11:19:42 +0200 Subject: [PATCH] `TextInputV1::reset` now resets the state, not the optional wrapping it --- src/server/frontend_wayland/text_input_v1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/frontend_wayland/text_input_v1.cpp b/src/server/frontend_wayland/text_input_v1.cpp index 45b878fa8d0..314a4da4ad5 100644 --- a/src/server/frontend_wayland/text_input_v1.cpp +++ b/src/server/frontend_wayland/text_input_v1.cpp @@ -371,7 +371,7 @@ void TextInputV1::deactivate(wl_resource *seat) pending_state.reset(); } -/// Electron appears to call show_input_panel() when commit_state() should be called. +/// Electron appears to call show_input_panel() when commit_state() should be called. void TextInputV1::show_input_panel() { commit_state(0); @@ -386,7 +386,7 @@ void TextInputV1::hide_input_panel() void TextInputV1::reset() { - pending_state.reset(); + pending_state.emplace(); } void TextInputV1::set_surrounding_text(const std::string &text, uint32_t cursor, uint32_t anchor)