microwindows.patches 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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
  4. @@ -47,7 +47,7 @@
  5. #
  6. ####################################################################
  7. -OPTIMIZE = Y
  8. -DEBUG = N
  9. -VERBOSE = N
  10. +OPTIMIZE = N
  11. +DEBUG = Y
  12. +VERBOSE = Y
  13. ####################################################################
  14. @@ -191,5 +191,5 @@
  15. #
  16. ####################################################################
  17. -ERASEMOVE = Y
  18. +ERASEMOVE = N
  19. UPDATEREGIONS = Y
  20. @@ -216,5 +216,5 @@
  21. # X Window screen, mouse and kbd drivers
  22. -X11 = N
  23. +X11 = Y
  24. ifeq ($(X11), Y)
  25. diff -rbu2 ../microwindows-0.89pre8.orig/src/mwin/winevent.c ./src/mwin/winevent.c
  26. --- ../microwindows-0.89pre8.orig/src/mwin/winevent.c Fri Dec 21 14:07:21 2001
  27. +++ ./src/mwin/winevent.c Fri Dec 21 14:10:59 2001
  28. @@ -167,5 +167,5 @@
  29. /* then possibly send user mouse message*/
  30. - if(hittest == HTCLIENT) {
  31. + if(hittest == HTCLIENT || hwnd == GetCapture()) {
  32. pt.x = cursorx;
  33. pt.y = cursory;
  34. Only in ./src/mwin: winevent.c~
  35. diff -rbu2 ../microwindows-0.89pre8.orig/src/mwin/winuser.c ./src/mwin/winuser.c
  36. --- ../microwindows-0.89pre8.orig/src/mwin/winuser.c Fri Dec 21 14:07:21 2001
  37. +++ ./src/mwin/winuser.c Fri Dec 21 14:10:59 2001
  38. @@ -137,7 +137,11 @@
  39. }
  40. +/*
  41. + * A helper function for sharing code between PeekMessage and GetMessage
  42. + */
  43. +
  44. BOOL WINAPI
  45. -PeekMessage(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
  46. - UINT wRemoveMsg)
  47. +PeekMessageHelper(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
  48. + UINT wRemoveMsg, BOOL returnIfEmptyQueue)
  49. {
  50. HWND wp;
  51. @@ -146,4 +150,8 @@
  52. /* check if no messages in queue*/
  53. if(mwMsgHead.head == NULL) {
  54. + /* Added by JACS so it doesn't reach MwSelect */
  55. + if (returnIfEmptyQueue)
  56. + return FALSE;
  57. +
  58. #if PAINTONCE
  59. /* check all windows for pending paint messages*/
  60. @@ -177,4 +185,12 @@
  61. BOOL WINAPI
  62. +PeekMessage(LPMSG lpMsg, HWND hwnd, UINT uMsgFilterMin, UINT uMsgFilterMax,
  63. + UINT wRemoveMsg)
  64. +{
  65. + /* Never wait in MwSelect: pass TRUE */
  66. + return PeekMessageHelper(lpMsg, hwnd, uMsgFilterMin, uMsgFilterMax, wRemoveMsg, TRUE);
  67. +}
  68. +
  69. +BOOL WINAPI
  70. GetMessage(LPMSG lpMsg,HWND hwnd,UINT wMsgFilterMin,UINT wMsgFilterMax)
  71. {
  72. @@ -183,5 +199,6 @@
  73. * so this code will work
  74. */
  75. - while(!PeekMessage(lpMsg, hwnd, wMsgFilterMin, wMsgFilterMax,PM_REMOVE))
  76. + /* Always wait in MwSelect if there are messages: pass FALSE */
  77. + while(!PeekMessageHelper(lpMsg, hwnd, wMsgFilterMin, wMsgFilterMax,PM_REMOVE, FALSE))
  78. continue;
  79. return lpMsg->message != WM_QUIT;