mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user