From 3ae7b81ae106db4c169996e21d1d196929af4b33 Mon Sep 17 00:00:00 2001 From: Pete Beardmore Date: Sun, 4 Mar 2018 21:46:22 +0000 Subject: fbtk, textbox, limit selection height to font size --- src/FbTk/TextBox.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index 8384c45..aeb411c 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc @@ -235,7 +235,7 @@ void TextBox::clear() { XGetGCValues(dpy, gc(), GCForeground|GCBackground, &backup); XSetForeground(dpy, gc(), backup.foreground); - fillRectangle(gc(), x, 0, width, height()); + fillRectangle(gc(), x, (height()-font().height())/2, width, font().height()); XColor c; c.pixel = backup.foreground; -- cgit v0.11.2