519c519,520 < pt.y = this->window_height - pt.y; --- > pt.y = this->window_height - pt.y + [this->window frame].origin.y; > pt.x -= [this->window frame].origin.x;