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:
parent
751180ba20
commit
eeb0437435
|
@ -116,7 +116,7 @@ static LRESULT CALLBACK msgwinproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
|
||||||
// TODO respond to WM_THEMECHANGED
|
// TODO respond to WM_THEMECHANGED
|
||||||
case msgRequest:
|
case msgRequest:
|
||||||
// in modal?
|
// in modal?
|
||||||
if (GetWindowLongPtrW(hwnd, GWLP_USERDATA) != 0) {
|
if (mq->inmodal) {
|
||||||
mq->modals[mq->len] = (void *) lParam;
|
mq->modals[mq->len] = (void *) lParam;
|
||||||
mq->len++;
|
mq->len++;
|
||||||
if (mq->len >= mq->cap) {
|
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)
|
if (mq->modals == NULL)
|
||||||
xpanic("error growing modal queue", GetLastError());
|
xpanic("error growing modal queue", GetLastError());
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
// nope, we can run now
|
// nope, we can run now
|
||||||
doissue((void *) lParam);
|
doissue((void *) lParam);
|
||||||
|
|
Loading…
Reference in New Issue