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;
{
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;