Open coolbutuseless opened 1 year ago
This seems to be an expected behavior, since there is nothing to handle the attempt to close the window on either platform. On linux, the program is terminated when it receives an error from Xorg, when trying to close the window (yes, it returns non-zero error code when closing on close window button).
Under OSX (12.6.3), I'm trying to open a second window after the first has closed.
In
examples/minimal-c/main.c
I've edited themain
to be:After the first window opens and I click "close", the executable exits and the second instance never starts.
The console output I see is:
What I've found so far:
run()
function the next line after thewhile
loop (fenster_close()
) never gets called!while
loop to be:while (t < 1000 && fenster_loop(&f) == 0)
and then wait fort
to reach 1000fenster_close()
)run()
immediately causes a segfault.