Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libview
diff options
context:
space:
mode:
authorJose Aliste <jose.aliste@gmail.com>2010-07-25 19:49:32 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-07-26 09:18:47 (GMT)
commit7950f00952243ce2d653068afb0ac1a370b5360a (patch)
treef24a1d5a28c59b28f27c64268a9b653e895f03f3 /libview
parentc1ce81fc578513db7994cabf1663c2653af86a2b (diff)
[libview] Correctly compute the position of the annotation window
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-annotation-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index 6539fd4..cbed0f7 100644
--- a/libview/ev-annotation-window.c
+++ b/libview/ev-annotation-window.c
@@ -454,8 +454,8 @@ ev_annotation_window_button_press_event (GtkWidget *widget,
if (event->type == GDK_BUTTON_PRESS && event->button == 1) {
window->in_move = TRUE;
- window->x = event->x;
- window->y = event->y;
+ window->x = event->x_root - event->x;
+ window->y = event->y_root - event->y;
gtk_window_begin_move_drag (GTK_WINDOW (widget),
event->button,
event->x_root,