do not switch to the next image on mouse click in split mode
authorVladimir Nadvornik <nadvornik@suse.cz>
Fri, 6 Feb 2009 22:56:52 +0000 (22:56 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Fri, 6 Feb 2009 22:56:52 +0000 (22:56 +0000)
it interferes with image switching too much

src/layout_image.c

index f4a51c9..9bd1a44 100644 (file)
@@ -1332,10 +1332,12 @@ static void layout_image_button_cb(ImageWindow *imd, GdkEventButton *event, gpoi
        switch (event->button)
                {
                case MOUSE_BUTTON_LEFT:
-                       layout_image_next(lw);
+                       if (lw->split_mode == SPLIT_NONE)
+                               layout_image_next(lw);
                        break;
                case MOUSE_BUTTON_MIDDLE:
-                       layout_image_prev(lw);
+                       if (lw->split_mode == SPLIT_NONE)
+                               layout_image_prev(lw);
                        break;
                case MOUSE_BUTTON_RIGHT:
                        menu = layout_image_pop_menu(lw);