Zebediah Figura : winex11: Send systray messages with SendNotifyMessage().

Alexandre Julliard julliard at winehq.org
Mon Jun 7 15:02:05 CDT 2021


Module: wine
Branch: stable
Commit: 02850d83bf064f05c38bf0e5b5ff645f5ccae555
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=02850d83bf064f05c38bf0e5b5ff645f5ccae555

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sat Jan 30 13:54:33 2021 -0600

winex11: Send systray messages with SendNotifyMessage().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50441
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 5c09d815f838ec349816840f6992187acd4f72bb)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 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 3be4bd65347..70462a14a6f 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 );




More information about the wine-cvs mailing list