fbtk, textbox, fix selection release on click

This commit is contained in:
Pete Beardmore 2018-03-04 21:55:14 +00:00 committed by Mathias Gumz
parent 3ae7b81ae1
commit f19bb5787f

View file

@ -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();
}
}