aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Beardmore <pete.beardmore@msn.com>2018-03-04 21:55:14 (GMT)
committerMathias Gumz <akira@fluxbox.org>2018-03-14 06:49:50 (GMT)
commitf19bb5787f8ec9e2faf3c30e366709a3c6087b96 (patch)
tree98fc9c0862daa971cb723b3249985e47580ede71
parent3ae7b81ae106db4c169996e21d1d196929af4b33 (diff)
downloadfluxbox-f19bb5787f8ec9e2faf3c30e366709a3c6087b96.zip
fluxbox-f19bb5787f8ec9e2faf3c30e366709a3c6087b96.tar.bz2
fbtk, textbox, fix selection release on click
-rw-r--r--src/FbTk/TextBox.cc2
1 files changed, 2 insertions, 0 deletions
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) {
285 } 285 }
286 } 286 }
287 m_cursor_pos = click_pos - m_start_pos; 287 m_cursor_pos = click_pos - m_start_pos;
288 m_select_pos = std::string::npos; // clear select
289 adjustPos();
288 clear(); 290 clear();
289 } 291 }
290} 292}