summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-17 10:02:41 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-17 10:02:41 +0100
commitfb6186484e105ae3041ec630c06dc71cb8bd4190 (patch)
tree560d8d9e77576bff8e7d275c58a9d544272e36a7
parent8e315f9f8fceb6cc847fddd30095c2460b7cd637 (diff)
downloadnetsurf-fb6186484e105ae3041ec630c06dc71cb8bd4190.tar.gz
netsurf-fb6186484e105ae3041ec630c06dc71cb8bd4190.tar.bz2
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.
-rw-r--r--content/content.c8
1 files changed, 7 insertions, 1 deletions
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;
}