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:
parent
8a5c1d1d4e
commit
8649f923ea
Notes:
sideshowbarker
2024-07-19 00:05:31 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8649f923ea1
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue