Commit c1ce81fc authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

[libview] Fix position of window annotations when moved by the user

parent e97dcfa3
......@@ -489,8 +489,12 @@ ev_annotation_window_focus_in_event (GtkWidget *widget,
EvAnnotationWindow *window = EV_ANNOTATION_WINDOW (widget);
if (window->in_move) {
window->orig_x = window->x;
window->orig_y = window->y;
if (window->orig_x != window->x || window->orig_y != window->y) {
window->orig_x = window->x;
window->orig_y = window->y;
g_signal_emit (window, signals[MOVED], 0, window->x, window->y);
}
window->in_move = FALSE;
}
return FALSE;
......@@ -502,12 +506,6 @@ ev_annotation_window_focus_out_event (GtkWidget *widget,
{
EvAnnotationWindow *window = EV_ANNOTATION_WINDOW (widget);
if (window->in_move &&
(window->orig_x != window->x || window->orig_y != window->y)) {
window->in_move = FALSE;
g_signal_emit (window, signals[MOVED], 0, window->x, window->y);
}
ev_annotation_window_sync_contents (window);
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment