mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-12 22:22:55 +00:00
LibGfx: Move StandardCursor enum to LibGfx
This enum existed both in LibGUI and WindowServer which was silly and error-prone.
This commit is contained in:
parent
c063a02979
commit
0f9be82826
Notes:
sideshowbarker
2024-07-19 02:47:24 +09:00
Author: https://github.com/awesomekling
Commit: 0f9be82826
23 changed files with 127 additions and 111 deletions
|
@ -216,11 +216,11 @@ bool EventHandler::handle_mousemove(const Gfx::IntPoint& position, unsigned butt
|
|||
}
|
||||
|
||||
if (is_hovering_link)
|
||||
page_client.page_did_request_cursor_change(GUI::StandardCursor::Hand);
|
||||
page_client.page_did_request_cursor_change(Gfx::StandardCursor::Hand);
|
||||
else if (is_hovering_text)
|
||||
page_client.page_did_request_cursor_change(GUI::StandardCursor::IBeam);
|
||||
page_client.page_did_request_cursor_change(Gfx::StandardCursor::IBeam);
|
||||
else
|
||||
page_client.page_did_request_cursor_change(GUI::StandardCursor::None);
|
||||
page_client.page_did_request_cursor_change(Gfx::StandardCursor::None);
|
||||
|
||||
if (hovered_node_changed) {
|
||||
RefPtr<HTML::HTMLElement> hovered_html_element = document.hovered_node() ? document.hovered_node()->enclosing_html_element() : nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue