Skip to content

Commit

Permalink
TextInputV1::reset now resets the state, not the optional wrapping it
Browse files Browse the repository at this point in the history
  • Loading branch information
tarek-y-ismail committed Dec 10, 2024
1 parent 86ece83 commit 721404a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/frontend_wayland/text_input_v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)
Expand Down

0 comments on commit 721404a

Please sign in to comment.