all repos — fluxbox @ 87629ad23c1db3072f9d2b9cf827ba64773ebf97

custom fork of the fluxbox windowmanager

fixed cursor bug, thanks Mathias Gumz
fluxgen fluxgen
commit

87629ad23c1db3072f9d2b9cf827ba64773ebf97

parent

dc318f6fa430426a283c085b327305acebbe9dd2

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/FbTk/TextBox.ccsrc/FbTk/TextBox.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: TextBox.cc,v 1.6 2004/01/08 22:02:52 fluxgen Exp $ +// $Id: TextBox.cc,v 1.7 2004/01/21 12:32:53 fluxgen Exp $ #include "TextBox.hh" #include "Font.hh"

@@ -161,7 +161,7 @@ 0, center_pos); // pos

// draw cursor position int cursor_pos = font().textWidth(text().c_str() + m_start_pos, m_cursor_pos) + 1; - drawLine(gc(), cursor_pos, 0, cursor_pos, font().height()); + drawLine(gc(), cursor_pos, center_pos, cursor_pos, center_pos - font().height()); } void TextBox::moveResize(int x, int y,