From: Gabriel Ivăncescu gabrielopcode@gmail.com
Fixes a regression introduced by b5c57b9a62c396068d18237bd6e82b37c169fdc5, which broke the systray integration outside of virtual desktops.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- programs/explorer/systray.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index c76ebdd0c92..02522e7b537 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -733,8 +733,9 @@ static BOOL add_icon(NOTIFYICONDATAW *nid) icon->id = nid->uID; icon->owner = nid->hWnd; icon->display = ICON_DISPLAY_HIDDEN; + icon->layered = !enable_taskbar;
- CreateWindowExW( 0, tray_icon_class.lpszClassName, NULL, WS_CLIPSIBLINGS | WS_POPUP, + CreateWindowExW( icon->layered ? WS_EX_LAYERED : 0, tray_icon_class.lpszClassName, NULL, WS_CLIPSIBLINGS | WS_POPUP, 0, 0, icon_cx, icon_cy, 0, NULL, NULL, icon ); if (!icon->window) ERR( "Failed to create systray icon window\n" );