From 74248253f591ca20b42a154bf39225f747a0fd3a Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 29 Jul 2015 12:55:44 +0800 Subject: [PATCH] win: Set GUID when getting icon's bounds --- atom/browser/ui/win/notify_icon.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/atom/browser/ui/win/notify_icon.cc b/atom/browser/ui/win/notify_icon.cc index ed422b882a..b58b593127 100644 --- a/atom/browser/ui/win/notify_icon.cc +++ b/atom/browser/ui/win/notify_icon.cc @@ -70,6 +70,11 @@ void NotifyIcon::HandleClickEvent(const gfx::Point& cursor_pos, icon_id.uID = icon_id_; icon_id.hWnd = window_; icon_id.cbSize = sizeof(NOTIFYICONIDENTIFIER); + if (has_tray_app_id_hash_) + memcpy(reinterpret_cast(&icon_id.guidItem), + &tray_app_id_hash_, + sizeof(GUID)); + RECT rect = { 0 }; Shell_NotifyIconGetRect(&icon_id, &rect);