Alexandre Julliard : winex11: Add a timer to detect when a systray owner has been destroyed.
Alexandre Julliard
julliard at winehq.org
Wed Apr 9 05:31:28 CDT 2008
Module: wine
Branch: master
Commit: 49f467c339497cdf1d81d30b99263f9adcebe15d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=49f467c339497cdf1d81d30b99263f9adcebe15d
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Apr 8 15:56:09 2008 +0200
winex11: Add a timer to detect when a systray owner has been destroyed.
---
dlls/winex11.drv/systray.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/systray.c b/dlls/winex11.drv/systray.c
index 6b967ff..347e5a7 100644
--- a/dlls/winex11.drv/systray.c
+++ b/dlls/winex11.drv/systray.c
@@ -185,6 +185,10 @@ static LRESULT WINAPI tray_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lp
}
break;
+ case WM_TIMER:
+ if (!IsWindow( icon->owner )) delete_icon( icon );
+ return 0;
+
default:
return DefWindowProcW(hwnd, msg, wparam, lparam);
}
@@ -323,6 +327,7 @@ static BOOL show_icon( struct tray_icon *icon )
NULL, NULL, NULL, icon );
create_tooltip( icon );
dock_systray_window( icon->window, systray_window );
+ SetTimer( icon->window, 1, 1000, NULL );
ShowWindow( icon->window, SW_SHOWNA );
icon->hidden = FALSE;
return TRUE;
More information about the wine-cvs
mailing list