diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-08-15 23:51:42 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-08-15 23:51:42 +0200 |
commit | 8d341bdb00df96e549f0cadc64c25cfa4f09294a (patch) | |
tree | c7c72ee9431a33831c34c2e782456c5378da6152 /src/mainwindow.c | |
parent | 4fd6e38211b569b81045528ea8794de790ad9da9 (diff) |
Click to set cursor position (needs debugging)
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r-- | src/mainwindow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c index 2ec5771..54792ce 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1184,6 +1184,9 @@ static gboolean button_press_sig(GtkWidget *da, GdkEventButton *event, p->drag_status = DRAG_STATUS_NONE; p->drag_reason = DRAG_REASON_NONE; set_selection(p, clicked); + clicked->pos = find_cursor_pos(clicked, + x-clicked->x, y-clicked->y); + p->cursor_pos = clicked->pos; } |