From eeb0437435bd42638f49213c533c8dd28c51f319 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 19 Aug 2014 04:03:09 -0400 Subject: [PATCH] Fixed most of the other modality issues on Windows. Now all that's left is the re-enabling window order one... --- redo/uitask_windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/redo/uitask_windows.c b/redo/uitask_windows.c index 3382d41..3732270 100644 --- a/redo/uitask_windows.c +++ b/redo/uitask_windows.c @@ -116,7 +116,7 @@ static LRESULT CALLBACK msgwinproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l // TODO respond to WM_THEMECHANGED case msgRequest: // in modal? - if (GetWindowLongPtrW(hwnd, GWLP_USERDATA) != 0) { + if (mq->inmodal) { mq->modals[mq->len] = (void *) lParam; mq->len++; if (mq->len >= mq->cap) { @@ -125,6 +125,7 @@ static LRESULT CALLBACK msgwinproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l if (mq->modals == NULL) xpanic("error growing modal queue", GetLastError()); } + return; } // nope, we can run now doissue((void *) lParam);