[PATCH 4/4] winex11: Send systray messages with SendNotifyMessage().

Zebediah Figura z.figura12 at gmail.com
Sat Jan 30 13:54:33 CST 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50441
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/winex11.drv/systray.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winex11.drv/systray.c b/dlls/winex11.drv/systray.c
index 952bc1ef266..5522b229836 100644
--- a/dlls/winex11.drv/systray.c
+++ b/dlls/winex11.drv/systray.c
@@ -451,7 +451,7 @@ static BOOL notify_owner( struct tray_icon *icon, UINT msg, LPARAM lparam )
     }
 
     TRACE( "relaying 0x%x\n", msg );
-    if (!PostMessageW( icon->owner, icon->callback_message, wp, lp ) &&
+    if (!SendNotifyMessageW( icon->owner, icon->callback_message, wp, lp ) &&
         (GetLastError() == ERROR_INVALID_WINDOW_HANDLE))
     {
         WARN( "application window was destroyed, removing icon %u\n", icon->id );
-- 
2.30.0




More information about the wine-devel mailing list