fbtk, textbox, limit selection height to font size

This commit is contained in:
Pete Beardmore 2018-03-04 21:46:22 +00:00 committed by Mathias Gumz
parent 375e41bb37
commit 3ae7b81ae1

View file

@ -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;