From af6b76e1a647c607f66cf2f6532b3b8d484805fa Mon Sep 17 00:00:00 2001
From: Ove Kaaven <ovek@arcticnet.no>
Date: Wed, 6 Dec 2000 19:45:22 +0000
Subject: [PATCH] Use SendNotifyMessage() for WM_SYNCPAINT.

---
 windows/x11drv/event.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/windows/x11drv/event.c b/windows/x11drv/event.c
index 2e4c7e8353b..fc6379f8952 100644
--- a/windows/x11drv/event.c
+++ b/windows/x11drv/event.c
@@ -648,11 +648,8 @@ static void EVENT_Expose( HWND hWnd, XExposeEvent *event )
 
   RedrawWindow( hWnd, &rect, 0, RDW_INVALIDATE | RDW_FRAME | RDW_ALLCHILDREN | RDW_ERASE );
 
-  /* FIXME: We should use SendNotifyMessage here, but this function is not
-     implemented correctly, so for now we used SendMessage */
-  /*SendNotifyMessageA(hWnd,WM_SYNCPAINT, 0, 0);*/
   if (event->count == 0)
-    SendMessageA(hWnd,WM_SYNCPAINT, 0, 0);
+    SendNotifyMessageA(hWnd,WM_SYNCPAINT, 0, 0);
 }
 
 
@@ -682,11 +679,8 @@ static void EVENT_GraphicsExpose( HWND hWnd, XGraphicsExposeEvent *event )
 
   RedrawWindow( hWnd, &rect, 0, RDW_INVALIDATE | RDW_ALLCHILDREN | RDW_ERASE );
 
-  /* FIXME: We should use SendNotifyMessage here, but this function is not
-     implemented correctly, so for now we used SendMessage */
-  /*SendNotifyMessageA(hWnd,WM_SYNCPAINT, 0, 0);*/
   if (event->count == 0)
-    SendMessageA(hWnd,WM_SYNCPAINT, 0, 0);
+    SendNotifyMessageA(hWnd,WM_SYNCPAINT, 0, 0);
 }
 
 
-- 
GitLab