Skip to content

Commit

Permalink
Merge pull request #8065 from radarhere/threadstate
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jun 25, 2024
2 parents e7c1da3 + fe00d12 commit 4d9fdac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ windowCallback(HWND wnd, UINT message, WPARAM wParam, LPARAM lParam) {
if (callback) {
/* restore thread state */
PyEval_SaveThread();
PyThreadState_Swap(threadstate);
PyThreadState_Swap(current_threadstate);
}

return status;
Expand Down

0 comments on commit 4d9fdac

Please sign in to comment.