diff options
author | Pete Beardmore <pete.beardmore@msn.com> | 2018-03-04 21:46:22 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2018-03-14 06:49:50 (GMT) |
commit | 3ae7b81ae106db4c169996e21d1d196929af4b33 (patch) | |
tree | dfb593a1dae7b810f08752f8770421f11eaf47f3 | |
parent | 375e41bb37da296e5d7803c7ea97d9320516cba7 (diff) | |
download | fluxbox-3ae7b81ae106db4c169996e21d1d196929af4b33.zip fluxbox-3ae7b81ae106db4c169996e21d1d196929af4b33.tar.bz2 |
fbtk, textbox, limit selection height to font size
-rw-r--r-- | src/FbTk/TextBox.cc | 2 |
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; |