rem: X = (x+screen.trans_x)/(double)screen.scale;
add: X = screen.gerber_bbox.x1 + (x+screen.trans_x)/(double)screen.scale;
context: motion_notify_event (GtkWidget *widget, GdkEventMotion *event){    int x, y;    GdkModifierType state;    GdkRectangle update_rect;        if (event->is_hint)	gdk_window_get_pointer (event->window, &x, &y, &state);    else {	x = event->x;	y = event->y;	state = event->state;    }        if (screen.pixmap != NULL) {	char str[60];	double X, Y;	int px, py;	if (screen.statusbar.absid)	    gtk_statusbar_pop((GtkStatusbar*)screen.statusbar.abs,			      screen.statusbar.absid);	screen.statusbar.absid = 	    gtk_statusbar_get_context_id((GtkStatusbar*)screen.statusbar.abs,					 "MotionNotify");	X = (x+screen.trans_x)/(double)screen.scale;	gdk_window_get_size(screen.pixmap, &px, &py); /* Need pixmap size, not screen */	Y = (px-y-screen.trans_y)/(double)screen.scale;	sprintf(str,		"(X, Y) (%7.1f, %7.1f)mils (%7.2f, %7.2f)mm",		X*100.0, Y*100.0, X*25.4, Y*25.4);	gtk_statusbar_push((GtkStatusbar*)screen.statusbar.abs,			   screen.statusbar.absid, str);	switch (screen.state) {	case MOVE: {	    x = widget->allocation.height - x;	    y = widget->allocation.width - y;	    if (screen.last_x != 0 || screen.last_y != 0) {		screen.trans_x = screen.trans_x + x - screen.last_x;		screen.trans_y = screen.trans_y + y - screen.last_y;	    }	    screen.last_x = x;	    screen.last_y = y;	    update_rect.x = 0, update_rect.y = 0;	    update_rect.width  = widget->allocation.width;	    update_rect.height = widget->allocation.height;		    /*	     * Calls expose_event	     */	    gtk_widget_draw(widget, &update_rect);	    break;	}	case ZOOM_OUTLINE: {	    if (screen.last_x || screen.last_y)		draw_zoom_outline(screen.centered_outline_zoom);	    screen.last_x = x;	    screen.last_y = y;	    draw_zoom_outline(screen.centered_outline_zoom);	    break;	}	case MEASURE: {	    if (screen.last_x || screen.last_y)		draw_measure_distance();	    screen.last_x = x;	    screen.last_y = y;	    draw_measure_distance();	    break;	}	default:	    break;	}    }        return TRUE;} /* motion_notify_event */