Fixed most of the other modality issues on Windows. Now all that's left is the re-enabling window order one...

This commit is contained in:
Pietro Gagliardi 2014-08-19 04:03:09 -04:00
parent 751180ba20
commit eeb0437435
1 changed files with 2 additions and 1 deletions

View File

@ -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);