From: Vladimir Nadvornik Date: Tue, 21 Aug 2012 20:31:05 +0000 (+0200) Subject: fixed scroll of fullscreen image X-Git-Tag: v1.2~97 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=bafd4bd22cd26498175a0481a4f201921f8480b5 fixed scroll of fullscreen image --- diff --git a/src/layout_image.c b/src/layout_image.c index e92dffc2..27403eaf 100644 --- a/src/layout_image.c +++ b/src/layout_image.c @@ -1496,7 +1496,8 @@ static void layout_image_drag_cb(ImageWindow *imd, GdkEventButton *event, gdoubl LayoutWindow *lw = data; gdouble sx, sy; - if (lw->full_screen && lw->image != lw->full_screen->imd) + if (lw->full_screen && lw->image != lw->full_screen->imd && + imd != lw->full_screen->imd) { if (event->state & GDK_CONTROL_MASK) { @@ -1504,7 +1505,7 @@ static void layout_image_drag_cb(ImageWindow *imd, GdkEventButton *event, gdoubl } else { - image_get_scroll_center(lw->split_images[i], &sx, &sy); + image_get_scroll_center(lw->full_screen->imd, &sx, &sy); sx += dx; sy += dy; }