1 diff -rbu2 ../microwindows-0.89pre8.orig/src/config ./src/config
2 --- ../microwindows-0.89pre8.orig/src/config Fri Dec 21 14:07:18 2001
3 +++ ./src/config Fri Dec 21 14:14:37 2001
6 ####################################################################
14 ####################################################################
17 ####################################################################
24 # X Window screen, mouse and kbd drivers
29 diff -rbu2 ../microwindows-0.89pre8.orig/src/mwin/winevent.c ./src/mwin/winevent.c
30 --- ../microwindows-0.89pre8.orig/src/mwin/winevent.c Fri Dec 21 14:07:21 2001
31 +++ ./src/mwin/winevent.c Fri Dec 21 14:10:59 2001
34 /* then possibly send user mouse message*/
35 - if(hittest == HTCLIENT) {
36 + if(hittest == HTCLIENT || hwnd == GetCapture()) {
39 Only in ./src/mwin: winevent.c~
40 diff -rbu2 ../microwindows-0.89pre8.orig/src/mwin/winuser.c ./src/mwin/winuser.c
41 --- ../microwindows-0.89pre8.orig/src/mwin/winuser.c Fri Dec 21 14:07:21 2001
42 +++ ./src/mwin/winuser.c Fri Dec 21 14:10:59 2001
47 + * A helper function for sharing code between PeekMessage and GetMessage
51 -PeekMessage(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
53 +PeekMessageHelper(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
54 + UINT wRemoveMsg, BOOL returnIfEmptyQueue)
58 /* check if no messages in queue*/
59 if(mwMsgHead.head == NULL) {
60 + /* Added by JACS so it doesn't reach MwSelect */
61 + if (returnIfEmptyQueue)
65 /* check all windows for pending paint messages*/
69 +PeekMessage(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
72 + /* Never wait in MwSelect: pass TRUE */
73 + return PeekMessageHelper(lpMsg, hwnd, uMsgFilterMin, uMsgFilterMax, wRemoveMsg, TRUE);
77 GetMessage(LPMSG lpMsg,HWND hwnd,UINT wMsgFilterMin,UINT wMsgFilterMax)
80 * so this code will work
82 - while(!PeekMessage(lpMsg, hwnd, wMsgFilterMin, wMsgFilterMax,PM_REMOVE))
83 + /* Always wait in MwSelect if there are messages: pass FALSE */
84 + while(!PeekMessageHelper(lpMsg, hwnd, wMsgFilterMin, wMsgFilterMax,PM_REMOVE, FALSE))
86 return lpMsg->message != WM_QUIT;