URI: 
       tImmediately display first image - croptool - Image cropping tool
  HTML git clone git://lumidify.org/croptool.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit 604fb5d4dfdaa5407f35753f474b00312342a0f0
   DIR parent 0eccd55570f34853180ebda08d28dc18f5ddbdaa
  HTML Author: lumidify <nobody@lumidify.org>
       Date:   Tue,  5 May 2020 18:16:20 +0200
       
       Immediately display first image
       
       Diffstat:
         M README                              |      11 ++++++++---
         M croptool.c                          |       3 +++
       
       2 files changed, 11 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/README b/README
       t@@ -35,9 +35,14 @@ Several keys are recognized:
        
        Note that resizing the window currently does not resize the images.
        It will only take effect if you move to another image or press
       -space bar. There may be bugs lurking here as well since the actual
       -cropping box needs to be rescaled according to how much the image
       -was scaled for display.
       +space bar. A side effect of this is that the image usually is 
       +displayed at the wrong size when the window initially opens in a
       +tiling window manager because the window is first mapped at the
       +requested (500x500) size and then resized by the window manager.
       +Just press space bar if that happens (it hasn't bothered me too
       +much up til now, and I use dwm). There may be bugs lurking here
       +as well since the actual cropping box needs to be rescaled according
       +to how much the image was scaled for display.
        
        When the window is closed, the ImageMagick command (mogrify -crop...)
        for cropping each of the pictures that had a selection box defined
   DIR diff --git a/croptool.c b/croptool.c
       t@@ -345,6 +345,9 @@ configure_event(GtkWidget *area, GdkEvent *event, gpointer data) {
                struct State *state = (struct State *)data;
                state->window_w = event->configure.width;
                state->window_h = event->configure.height;
       +        if (state->cur_selection == -1 && state->window_w > 0 && state->window_h > 0) {
       +                next_picture(area, state, FALSE);
       +        }
                return FALSE;
        }