From 0eef9075f3ebe4d05e700e20950c817bf1ca423b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 25 Oct 2012 11:53:57 +0200 Subject: [PATCH] winex11: Ignore WM_PAINT for layered system tray icons. --- dlls/winex11.drv/systray.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winex11.drv/systray.c b/dlls/winex11.drv/systray.c index 5f0791e47bc..a694610a86a 100644 --- a/dlls/winex11.drv/systray.c +++ b/dlls/winex11.drv/systray.c @@ -462,6 +462,7 @@ static LRESULT WINAPI tray_icon_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPAR break; case WM_PAINT: + if (!icon->layered) { PAINTSTRUCT ps; RECT rc; @@ -477,6 +478,7 @@ static LRESULT WINAPI tray_icon_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPAR EndPaint(hwnd, &ps); return 0; } + break; case WM_MOUSEMOVE: case WM_LBUTTONDOWN: