summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libview/ev-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 4f32136a..5767a757 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -4368,7 +4368,8 @@ ev_view_button_press_event (GtkWidget *widget,
if (EV_IS_SELECTION (view->document))
start_selection_for_event (view, event);
- if (get_caret_cursor_offset_at_location (view, event->x, event->y, &page, &offset)) {
+ if (get_caret_cursor_offset_at_location (view, event->x, event->y, &page, &offset) &&
+ (view->cursor_offset != offset || view->cursor_page != page)) {
view->cursor_offset = offset;
view->cursor_page = page;
gtk_widget_queue_draw (widget);