From 3a1285aeac535a6220c9248fbcd49bf913140842 Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Sun, 31 Jul 2016 05:11:56 +0200 Subject: [PATCH] Send some more data with the cursor-changed event --- atom/browser/api/atom_api_web_contents.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 770b6b347ee4..2a9dabc33874 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1336,6 +1336,8 @@ void WebContents::OnCursorChange(const content::WebCursor& cursor) { if (cursor.IsCustom()) { Emit("cursor-changed", CursorTypeToString(info), gfx::Image::CreateFrom1xBitmap(info.custom_image), + gfx::Rect(info.custom_image.width(), info.custom_image.height()), + info.hotspot, info.image_scale_factor); } else { Emit("cursor-changed", CursorTypeToString(info));