From: Jose Aliste Date: Sun, 25 Jul 2010 19:49:32 +0000 (-0400) Subject: [libview] Correctly compute the position of the annotation window X-Git-Tag: EVINCE_2_31_6~27 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=7950f00952243ce2d653068afb0ac1a370b5360a;p=evince.git [libview] Correctly compute the position of the annotation window --- diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c index 6539fd4f..cbed0f74 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,