mudgangster

Log | Files | Refs

commit 7bb190a5da3d2e123e2b650a472cc457d4794ef5
parent 5ea1cd6e3f859618122440362fa06d56dad935ca
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue,  4 Sep 2018 18:08:06 +0300

Oops

Diffstat:
src/x11.cc | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/x11.cc b/src/x11.cc @@ -443,16 +443,16 @@ static void event_mouse_move( XEvent * xevent ) { } if( UI.chat_text.selecting ) { - int x = event->x - UI.main_text.x; - int y = event->y - UI.main_text.y; + int x = event->x - UI.chat_text.x; + int y = event->y - UI.chat_text.y; - int my = UI.main_text.h - y; + int my = UI.chat_text.h - y; int row = my / ( Style.font.height + SPACING ); int col = x / Style.font.width; - UI.main_text.selection_end_col = col; - UI.main_text.selection_end_row = row; + UI.chat_text.selection_end_col = col; + UI.chat_text.selection_end_row = row; textbox_draw( &UI.chat_text ); }