mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Switched to gfx::Rect constructor that takes a RECT
As per @zcbenz's suggestion the rect passed to the click event handler now passes a rect constructed using `gfx::Rect(const RECT& r)`.
This commit is contained in:
@@ -58,9 +58,7 @@ void NotifyIcon::HandleClickEvent(const gfx::Point& cursor_pos,
|
||||
RECT rect;
|
||||
Shell_NotifyIconGetRect(&icon_id, &rect);
|
||||
|
||||
int width = rect.right - rect.left;
|
||||
int height = rect.bottom - rect.top;
|
||||
NotifyClicked(gfx::Rect(rect.left, rect.top, width, height));
|
||||
NotifyClicked(gfx::Rect(rect));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user