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:
parent
e5c4e34ac4
commit
16c08e7e37
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue