diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-19 12:46:42 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-08-19 12:46:42 +0100 |
commit | 57d2e31e591b97106f9c66ce54c96bc094208a54 (patch) | |
tree | 643ce8c6a28e210efe4b4baa4eab03bf1617d050 /render/html.c | |
parent | 762cade3622a4295c7209307a4626773bd6bc7c0 (diff) | |
download | netsurf-57d2e31e591b97106f9c66ce54c96bc094208a54.tar.gz netsurf-57d2e31e591b97106f9c66ce54c96bc094208a54.tar.bz2 |
Avoid using hlcache_handle for drag saves in html_interaction. Drag save msg with NULL content now means save the content which sends the message.
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c index 134852fa2..db9e20810 100644 --- a/render/html.c +++ b/render/html.c @@ -1243,6 +1243,18 @@ html_object_callback(hlcache_handle *object, break; case CONTENT_MSG_DRAGSAVE: + { + union content_msg_data msg_data; + if (event->data.dragsave.content == NULL) + msg_data.dragsave.content = object; + else + msg_data.dragsave.content = + event->data.dragsave.content; + + content_broadcast(&c->base, CONTENT_MSG_DRAGSAVE, msg_data); + } + break; + case CONTENT_MSG_SAVELINK: case CONTENT_MSG_POINTER: case CONTENT_MSG_PASTE: |