From c43afe71b7dbe6ca0d76bf75631f85e463489d7c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 Jul 2020 23:32:12 +0200 Subject: [PATCH] LibWeb: Make WebContentView show the hover hand over links :^) --- Libraries/LibWeb/WebContentView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/LibWeb/WebContentView.cpp b/Libraries/LibWeb/WebContentView.cpp index 8a8c2caf17..9ac6467c13 100644 --- a/Libraries/LibWeb/WebContentView.cpp +++ b/Libraries/LibWeb/WebContentView.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include WebContentView::WebContentView() @@ -129,12 +130,16 @@ void WebContentView::notify_server_did_request_scroll_into_view(Badge, const URL& url) { + if (window()) + window()->set_override_cursor(GUI::StandardCursor::Hand); if (on_link_hover) on_link_hover(url); } void WebContentView::notify_server_did_unhover_link(Badge) { + if (window()) + window()->set_override_cursor(GUI::StandardCursor::None); if (on_link_hover) on_link_hover({}); }