aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPete Beardmore <pete.beardmore@msn.com>2018-03-04 21:46:22 (GMT)
committerMathias Gumz <akira@fluxbox.org>2018-03-14 06:49:50 (GMT)
commit3ae7b81ae106db4c169996e21d1d196929af4b33 (patch)
treedfb593a1dae7b810f08752f8770421f11eaf47f3 /src
parent375e41bb37da296e5d7803c7ea97d9320516cba7 (diff)
downloadfluxbox-3ae7b81ae106db4c169996e21d1d196929af4b33.zip
fluxbox-3ae7b81ae106db4c169996e21d1d196929af4b33.tar.bz2
fbtk, textbox, limit selection height to font size
Diffstat (limited to 'src')
-rw-r--r--src/FbTk/TextBox.cc2
1 files changed, 1 insertions, 1 deletions
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() {
235 XGetGCValues(dpy, gc(), GCForeground|GCBackground, &backup); 235 XGetGCValues(dpy, gc(), GCForeground|GCBackground, &backup);
236 XSetForeground(dpy, gc(), backup.foreground); 236 XSetForeground(dpy, gc(), backup.foreground);
237 237
238 fillRectangle(gc(), x, 0, width, height()); 238 fillRectangle(gc(), x, (height()-font().height())/2, width, font().height());
239 239
240 XColor c; 240 XColor c;
241 c.pixel = backup.foreground; 241 c.pixel = backup.foreground;