app: fix initial navigation popup position

so it doean't jump around on first mouse movement.
This commit is contained in:
Michael Natterer 2011-04-03 17:59:35 +02:00
parent 6b42cd0669
commit dea9176121
1 changed files with 4 additions and 4 deletions

View File

@ -282,10 +282,10 @@ gimp_navigation_editor_popup (GimpDisplayShell *shell,
screen_click_x = x_origin + click_x;
screen_click_y = y_origin + click_y;
border_width = style->xthickness * 4;
border_height = style->ythickness * 4;
popup_width = GIMP_VIEW (view)->renderer->width - border_width;
popup_height = GIMP_VIEW (view)->renderer->height - border_height;
border_width = 2 * style->xthickness;
border_height = 2 * style->ythickness;
popup_width = GIMP_VIEW (view)->renderer->width - 2 * border_width;
popup_height = GIMP_VIEW (view)->renderer->height - 2 * border_height;
x = screen_click_x -
border_width -