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.
This commit is contained in:
Andreas Kling 2021-01-05 22:22:44 +01:00
parent 8a5c1d1d4e
commit 8649f923ea
Notes: sideshowbarker 2024-07-19 00:05:31 +09:00

View file

@ -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)