From 9ab3ec080f04cf3b1672fd61dc5306d1a74b976b Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Tue, 30 Jul 2019 14:06:16 +0200 Subject: [PATCH] fix: tray.displayBalloon() does not work with custom icon on Windows (#19330) --- shell/browser/api/atom_api_tray.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/browser/api/atom_api_tray.cc b/shell/browser/api/atom_api_tray.cc index 62671ef6977..97004409376 100644 --- a/shell/browser/api/atom_api_tray.cc +++ b/shell/browser/api/atom_api_tray.cc @@ -199,7 +199,7 @@ void Tray::DisplayBalloon(mate::Arguments* args, #if defined(OS_WIN) tray_icon_->DisplayBalloon( - icon.IsEmpty() ? NULL : icon->GetHICON(GetSystemMetrics(SM_CXSMICON)), + icon.IsEmpty() ? NULL : icon->GetHICON(GetSystemMetrics(SM_CXICON)), title, content); #else tray_icon_->DisplayBalloon(icon.IsEmpty() ? gfx::Image() : icon->image(),