From fb6186484e105ae3041ec630c06dc71cb8bd4190 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 17 Aug 2012 10:02:41 +0100 Subject: [PATCH] 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. --- content/content.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/content.c b/content/content.c index 758a615ce..e78ead295 100644 --- a/content/content.c +++ b/content/content.c @@ -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; }