From b0ea929b28bd7492ffea52e889bebbdb8ff2070c Mon Sep 17 00:00:00 2001 From: Aaron Taylor Date: Sun, 14 Mar 2021 00:12:44 -0800 Subject: [PATCH] Correctly store pointer to new state struct with screenhack framework on window resize events. --- hacks/WolframAutomata/WolframAutomata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacks/WolframAutomata/WolframAutomata.c b/hacks/WolframAutomata/WolframAutomata.c index 5349b1a..1dac50e 100644 --- a/hacks/WolframAutomata/WolframAutomata.c +++ b/hacks/WolframAutomata/WolframAutomata.c @@ -249,7 +249,7 @@ static void WolframAutomata_reshape(Display * dpy, Window win, void * closure, unsigned int w, unsigned int h) { WolframAutomata_free(dpy, win, closure); - WolframAutomata_init(dpy, win); + closure = WolframAutomata_init(dpy, win); } XSCREENSAVER_MODULE ("1D Nearest-Neighbor Cellular Automata", WolframAutomata) -- 2.20.1