mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
Now contents types without mouse handling can set default pointer. Fixes standalone images showing e.g. link pointer if that was the last pointer before the standalone image loaded.
This commit is contained in:
parent
8e315f9f8f
commit
fb6186484e
@ -416,8 +416,14 @@ void content_mouse_track(hlcache_handle *h, struct browser_window *bw,
|
||||
struct content *c = hlcache_handle_get_content(h);
|
||||
assert(c != NULL);
|
||||
|
||||
if (c->handler->mouse_track != NULL)
|
||||
if (c->handler->mouse_track != NULL) {
|
||||
c->handler->mouse_track(c, bw, mouse, x, y);
|
||||
} else {
|
||||
union content_msg_data msg_data;
|
||||
msg_data.pointer = BROWSER_POINTER_AUTO;
|
||||
content_broadcast(c, CONTENT_MSG_POINTER, msg_data);
|
||||
}
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user