From 52470517f20d0c5c6a6a6071c0b116f6c2201a53 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 19 Jun 2013 13:19:23 +0200 Subject: libview: Do not redraw after a click if cursor position hasn't changed origin commit: https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=e118165 --- libview/ev-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libview') 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); -- cgit v1.2.1