From f19bb5787f8ec9e2faf3c30e366709a3c6087b96 Mon Sep 17 00:00:00 2001 From: Pete Beardmore Date: Sun, 4 Mar 2018 21:55:14 +0000 Subject: fbtk, textbox, fix selection release on click --- src/FbTk/TextBox.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index aeb411c..dcd51a7 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc @@ -285,6 +285,8 @@ void TextBox::buttonPressEvent(XButtonEvent &event) { } } m_cursor_pos = click_pos - m_start_pos; + m_select_pos = std::string::npos; // clear select + adjustPos(); clear(); } } -- cgit v0.11.2