From 8649f923ea115806cd44f18965506253de89658e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 5 Jan 2021 22:22:44 +0100 Subject: [PATCH] LibWeb: Set override cursor on IPWV itself instead of whole window When changing the mouse cursor (e.g when hovering over a link) we now only change the InProcessWebView's override cursor instead of setting the cursor at the window level. This fixes an issue where the I-beam or hand cursors would somehow "escape" from the web view and over to other widgets. --- Libraries/LibWeb/InProcessWebView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/LibWeb/InProcessWebView.cpp b/Libraries/LibWeb/InProcessWebView.cpp index 1fa94ec3de..84b8dfec07 100644 --- a/Libraries/LibWeb/InProcessWebView.cpp +++ b/Libraries/LibWeb/InProcessWebView.cpp @@ -163,8 +163,7 @@ void InProcessWebView::page_did_change_selection() void InProcessWebView::page_did_request_cursor_change(Gfx::StandardCursor cursor) { - if (window()) - window()->set_cursor(cursor); + set_override_cursor(cursor); } void InProcessWebView::page_did_request_context_menu(const Gfx::IntPoint& content_position)