From: Mark Wooding Date: Sun, 24 Apr 2022 11:17:32 +0000 (+0100) Subject: xrepaint.c: Handle the other kinds of events we requested. X-Git-Url: https://git.distorted.org.uk/~mdw/xtoys/commitdiff_plain/88e87d2ab37d6e612e41fdb0032911e2b18c2108 xrepaint.c: Handle the other kinds of events we requested. --- diff --git a/xrepaint.c b/xrepaint.c index b957650..08ef3b6 100644 --- a/xrepaint.c +++ b/xrepaint.c @@ -154,7 +154,9 @@ int main(int argc, char *argv[]) while (n) { XNextEvent(dpy, &ev); switch (ev.type) { - case Expose: case KeyPress: case ButtonPress: + case MapNotify: + w = ev.xmap.window; goto window_visible; + case VisibilityNotify: case Expose: case KeyPress: case ButtonPress: w = ev.xany.window; goto window_visible; window_visible: for (i = 0; i < n; i++)