diff options
author | Carlos Garcia Campos <[email protected]> | 2013-06-19 13:19:23 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-09-06 18:25:34 +0200 |
commit | 52470517f20d0c5c6a6a6071c0b116f6c2201a53 (patch) | |
tree | 6fc64926f28e10ca70f4200bba991ba5cb76280c /libview/ev-view.c | |
parent | 6740baaa2eb9ee0b5dec91cded20f95ca88af3a9 (diff) | |
download | atril-52470517f20d0c5c6a6a6071c0b116f6c2201a53.tar.bz2 atril-52470517f20d0c5c6a6a6071c0b116f6c2201a53.tar.xz |
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
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r-- | libview/ev-view.c | 3 |
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); |