summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-19 04:03:09 -0400
committerPietro Gagliardi <[email protected]>2014-08-19 04:03:09 -0400
commiteeb0437435bd42638f49213c533c8dd28c51f319 (patch)
treeffde1f9ad22a97fc32606cf8ca5d2b59ed2760d7
parent751180ba20458efbbfc80ab66a8cf4d2d8a713c8 (diff)
Fixed most of the other modality issues on Windows. Now all that's left is the re-enabling window order one...
-rw-r--r--redo/uitask_windows.c3
1 files changed, 2 insertions, 1 deletions
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);