Closing the kmatrix window while it is not in the foreground may cause a use-after-free when it is closed again later, since the event loop can reenter kmatrix_window::event_handler. Skip the exit logic if the window is not in the foreground, so that it remains open until it times out while in the foreground. |
||
---|---|---|
.. | ||
2d | ||
3d | ||
arch | ||
editor | ||
main | ||
misc |