Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/fb6186484e105ae3041ec630c06dc71cb8bd4190
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/fb6186484e105ae3041ec630c06dc71cb8bd4190
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/fb6186484e105ae3041ec630c06dc71cb8bd4190

The branch, master has been updated
       via  fb6186484e105ae3041ec630c06dc71cb8bd4190 (commit)
       via  8e315f9f8fceb6cc847fddd30095c2460b7cd637 (commit)
       via  142a0bf859b70a2b278b007aac99a5ab0811a956 (commit)
       via  e177fa49c29ca05f5b2498f286f78da6545f8278 (commit)
      from  402de7572d76686dd65a5ee71274a690a421cc8f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commitdiff/fb6186484e105ae3041ec630c06dc71cb8bd4190
commit fb6186484e105ae3041ec630c06dc71cb8bd4190
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    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.

diff --git a/content/content.c b/content/content.c
index 758a615..e78ead2 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;
 }


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commitdiff/8e315f9f8fceb6cc847fddd30095c2460b7cd637
commit 8e315f9f8fceb6cc847fddd30095c2460b7cd637
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Set content handlers now set pointer via content msg.

diff --git a/render/html_interaction.c b/render/html_interaction.c
index a3cfaa9..1365d77 100644
--- a/render/html_interaction.c
+++ b/render/html_interaction.c
@@ -829,8 +829,10 @@ void html_mouse_action(struct content *c, struct 
browser_window *bw,
                content_broadcast(c, CONTENT_MSG_STATUS, msg_data);
        }
 
-       if (!iframe)
-               browser_window_set_pointer(bw, pointer);
+       if (!iframe) {
+               msg_data.pointer = pointer;
+               content_broadcast(c, CONTENT_MSG_POINTER, msg_data);
+       }
 
        /* deferred actions that can cause this browser_window to be destroyed
         * and must therefore be done after set_status/pointer
@@ -861,6 +863,7 @@ void html_overflow_scroll_callback(void *client_data,
        struct html_scrollbar_data *data = client_data;
        html_content *html = (html_content *)data->c;
        struct box *box = data->box;
+       union content_msg_data msg_data;
        
        switch(scrollbar_data->msg) {
                case SCROLLBAR_MSG_MOVED:
@@ -885,9 +888,10 @@ void html_overflow_scroll_callback(void *client_data,
 
                        browser_window_set_drag_type(html->bw,
                                        DRAGGING_NONE, NULL);
-                       
-                       browser_window_set_pointer(html->bw,
-                                       BROWSER_POINTER_DEFAULT);
+
+                       msg_data.pointer = BROWSER_POINTER_AUTO;
+                       content_broadcast(data->c, CONTENT_MSG_POINTER,
+                                       msg_data);
                        break;
        }
 }
diff --git a/render/textplain.c b/render/textplain.c
index 7411e3b..71d5765 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -676,6 +676,7 @@ void textplain_mouse_action(struct content *c, struct 
browser_window *bw,
 {
        textplain_content *text = (textplain_content *) c;
        browser_pointer_shape pointer = BROWSER_POINTER_DEFAULT;
+       union content_msg_data msg_data;
        const char *status = 0;
        size_t idx;
        int dir = 0;
@@ -708,7 +709,8 @@ void textplain_mouse_action(struct content *c, struct 
browser_window *bw,
        if (status != NULL)
                browser_window_set_status(bw, status);
 
-       browser_window_set_pointer(bw, pointer);
+       msg_data.pointer = pointer;
+       content_broadcast(c, CONTENT_MSG_POINTER, msg_data);
 }
 
 


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commitdiff/142a0bf859b70a2b278b007aac99a5ab0811a956
commit 142a0bf859b70a2b278b007aac99a5ab0811a956
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Add content message for setting mouse pointer.

diff --git a/content/content.h b/content/content.h
index f3a4438..d0b525c 100644
--- a/content/content.h
+++ b/content/content.h
@@ -76,7 +76,8 @@ typedef enum {
        CONTENT_MSG_GETCTX,    /**< Javascript context */
        CONTENT_MSG_SCROLL,    /**< Request to scroll content */
        CONTENT_MSG_DRAGSAVE,  /**< Allow drag saving of content */
-       CONTENT_MSG_SAVELINK   /**< Allow URL to be saved */
+       CONTENT_MSG_SAVELINK,  /**< Allow URL to be saved */
+       CONTENT_MSG_POINTER    /**< Wants a specific mouse pointer set */
 } content_msg;
 
 /** RFC5988 metadata link */
@@ -145,6 +146,8 @@ union content_msg_data {
                const char *url;
                const char *title;
        } savelink;
+       /** CONTENT_MSG_POINTER - Mouse pointer to set */
+       browser_pointer_shape pointer;
 };
 
 /** parameters to content redraw */
diff --git a/desktop/browser.c b/desktop/browser.c
index 3c99c5f..f9519b0 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1483,6 +1483,11 @@ nserror browser_window_callback(hlcache_handle *c,
        }
                break;
 
+       case CONTENT_MSG_POINTER:
+               /* Content wants to have specific mouse pointer */
+               browser_window_set_pointer(bw, event->data.pointer);
+               break;
+
        default:
                assert(0);
        }
diff --git a/render/html.c b/render/html.c
index 7c7b797..ed7e7eb 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1252,6 +1252,11 @@ html_object_callback(hlcache_handle *object,
                content_broadcast(&c->base, CONTENT_MSG_SAVELINK, event->data);
                break;
 
+       case CONTENT_MSG_POINTER:
+               /* Pass it on */
+               content_broadcast(&c->base, CONTENT_MSG_POINTER, event->data);
+               break;
+
        default:
                assert(0);
        }


commitdiff 
http://git.netsurf-browser.org/netsurf.git/commitdiff/e177fa49c29ca05f5b2498f286f78da6545f8278
commit e177fa49c29ca05f5b2498f286f78da6545f8278
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Move mouse pointer enums to mouse header.

diff --git a/desktop/browser.h b/desktop/browser.h
index be56288..489a7ed 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -68,29 +68,6 @@ typedef enum {
        DRAGGING_OTHER
 } browser_drag_type;
 
-typedef enum {
-       BROWSER_POINTER_DEFAULT         = GUI_POINTER_DEFAULT,
-       BROWSER_POINTER_POINT           = GUI_POINTER_POINT,
-       BROWSER_POINTER_CARET           = GUI_POINTER_CARET,
-       BROWSER_POINTER_MENU            = GUI_POINTER_MENU,
-       BROWSER_POINTER_UP              = GUI_POINTER_UP,
-       BROWSER_POINTER_DOWN            = GUI_POINTER_DOWN,
-       BROWSER_POINTER_LEFT            = GUI_POINTER_LEFT,
-       BROWSER_POINTER_RIGHT           = GUI_POINTER_RIGHT,
-       BROWSER_POINTER_RU              = GUI_POINTER_RU,
-       BROWSER_POINTER_LD              = GUI_POINTER_LD,
-       BROWSER_POINTER_LU              = GUI_POINTER_LU,
-       BROWSER_POINTER_RD              = GUI_POINTER_RD,
-       BROWSER_POINTER_CROSS           = GUI_POINTER_CROSS,
-       BROWSER_POINTER_MOVE            = GUI_POINTER_MOVE,
-       BROWSER_POINTER_WAIT            = GUI_POINTER_WAIT,
-       BROWSER_POINTER_HELP            = GUI_POINTER_HELP,
-       BROWSER_POINTER_NO_DROP         = GUI_POINTER_NO_DROP,
-       BROWSER_POINTER_NOT_ALLOWED     = GUI_POINTER_NOT_ALLOWED,
-       BROWSER_POINTER_PROGRESS        = GUI_POINTER_PROGRESS,
-       BROWSER_POINTER_AUTO
-} browser_pointer_shape;
-
 /** Browser window data. */
 struct browser_window {
        /** Page currently displayed, or 0. Must have status READY or DONE. */
diff --git a/desktop/gui.h b/desktop/gui.h
index eccf0b4..aa3fc81 100644
--- a/desktop/gui.h
+++ b/desktop/gui.h
@@ -53,14 +53,6 @@ struct browser_window;
 struct selection;
 struct form_control;
 
-typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, GUI_POINTER_CARET,
-              GUI_POINTER_MENU, GUI_POINTER_UP, GUI_POINTER_DOWN,
-              GUI_POINTER_LEFT, GUI_POINTER_RIGHT, GUI_POINTER_RU,
-              GUI_POINTER_LD, GUI_POINTER_LU, GUI_POINTER_RD,
-              GUI_POINTER_CROSS, GUI_POINTER_MOVE, GUI_POINTER_WAIT,
-              GUI_POINTER_HELP, GUI_POINTER_NO_DROP, GUI_POINTER_NOT_ALLOWED,
-               GUI_POINTER_PROGRESS } gui_pointer_shape;
-
 #include <stdbool.h>
 
 #include <libwapcaplet/libwapcaplet.h>
@@ -69,6 +61,7 @@ typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, 
GUI_POINTER_CARET,
 #include "utils/config.h"
 #include "content/hlcache.h"
 #include "desktop/download.h"
+#include "desktop/mouse.h"
 #include "desktop/search.h"
 #include "utils/errors.h"
 
diff --git a/desktop/mouse.h b/desktop/mouse.h
index 84af82f..42603a6 100644
--- a/desktop/mouse.h
+++ b/desktop/mouse.h
@@ -63,6 +63,40 @@ typedef enum {
                                         * (eg. Alt) */
 } browser_mouse_state;
 
+
+typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, GUI_POINTER_CARET,
+              GUI_POINTER_MENU, GUI_POINTER_UP, GUI_POINTER_DOWN,
+              GUI_POINTER_LEFT, GUI_POINTER_RIGHT, GUI_POINTER_RU,
+              GUI_POINTER_LD, GUI_POINTER_LU, GUI_POINTER_RD,
+              GUI_POINTER_CROSS, GUI_POINTER_MOVE, GUI_POINTER_WAIT,
+              GUI_POINTER_HELP, GUI_POINTER_NO_DROP, GUI_POINTER_NOT_ALLOWED,
+               GUI_POINTER_PROGRESS } gui_pointer_shape;
+
+/** Mouse pointer type */
+typedef enum {
+       BROWSER_POINTER_DEFAULT         = GUI_POINTER_DEFAULT,
+       BROWSER_POINTER_POINT           = GUI_POINTER_POINT,
+       BROWSER_POINTER_CARET           = GUI_POINTER_CARET,
+       BROWSER_POINTER_MENU            = GUI_POINTER_MENU,
+       BROWSER_POINTER_UP              = GUI_POINTER_UP,
+       BROWSER_POINTER_DOWN            = GUI_POINTER_DOWN,
+       BROWSER_POINTER_LEFT            = GUI_POINTER_LEFT,
+       BROWSER_POINTER_RIGHT           = GUI_POINTER_RIGHT,
+       BROWSER_POINTER_RU              = GUI_POINTER_RU,
+       BROWSER_POINTER_LD              = GUI_POINTER_LD,
+       BROWSER_POINTER_LU              = GUI_POINTER_LU,
+       BROWSER_POINTER_RD              = GUI_POINTER_RD,
+       BROWSER_POINTER_CROSS           = GUI_POINTER_CROSS,
+       BROWSER_POINTER_MOVE            = GUI_POINTER_MOVE,
+       BROWSER_POINTER_WAIT            = GUI_POINTER_WAIT,
+       BROWSER_POINTER_HELP            = GUI_POINTER_HELP,
+       BROWSER_POINTER_NO_DROP         = GUI_POINTER_NO_DROP,
+       BROWSER_POINTER_NOT_ALLOWED     = GUI_POINTER_NOT_ALLOWED,
+       BROWSER_POINTER_PROGRESS        = GUI_POINTER_PROGRESS,
+       BROWSER_POINTER_AUTO
+} browser_pointer_shape;
+
+
 void browser_mouse_state_dump(browser_mouse_state mouse);
 
 #endif


-----------------------------------------------------------------------

Summary of changes:
 content/content.c         |    8 +++++++-
 content/content.h         |    5 ++++-
 desktop/browser.c         |    5 +++++
 desktop/browser.h         |   23 -----------------------
 desktop/gui.h             |    9 +--------
 desktop/mouse.h           |   34 ++++++++++++++++++++++++++++++++++
 render/html.c             |    5 +++++
 render/html_interaction.c |   14 +++++++++-----
 render/textplain.c        |    4 +++-
 9 files changed, 68 insertions(+), 39 deletions(-)

diff --git a/content/content.c b/content/content.c
index 758a615..e78ead2 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;
 }
diff --git a/content/content.h b/content/content.h
index f3a4438..d0b525c 100644
--- a/content/content.h
+++ b/content/content.h
@@ -76,7 +76,8 @@ typedef enum {
        CONTENT_MSG_GETCTX,    /**< Javascript context */
        CONTENT_MSG_SCROLL,    /**< Request to scroll content */
        CONTENT_MSG_DRAGSAVE,  /**< Allow drag saving of content */
-       CONTENT_MSG_SAVELINK   /**< Allow URL to be saved */
+       CONTENT_MSG_SAVELINK,  /**< Allow URL to be saved */
+       CONTENT_MSG_POINTER    /**< Wants a specific mouse pointer set */
 } content_msg;
 
 /** RFC5988 metadata link */
@@ -145,6 +146,8 @@ union content_msg_data {
                const char *url;
                const char *title;
        } savelink;
+       /** CONTENT_MSG_POINTER - Mouse pointer to set */
+       browser_pointer_shape pointer;
 };
 
 /** parameters to content redraw */
diff --git a/desktop/browser.c b/desktop/browser.c
index 3c99c5f..f9519b0 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1483,6 +1483,11 @@ nserror browser_window_callback(hlcache_handle *c,
        }
                break;
 
+       case CONTENT_MSG_POINTER:
+               /* Content wants to have specific mouse pointer */
+               browser_window_set_pointer(bw, event->data.pointer);
+               break;
+
        default:
                assert(0);
        }
diff --git a/desktop/browser.h b/desktop/browser.h
index be56288..489a7ed 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -68,29 +68,6 @@ typedef enum {
        DRAGGING_OTHER
 } browser_drag_type;
 
-typedef enum {
-       BROWSER_POINTER_DEFAULT         = GUI_POINTER_DEFAULT,
-       BROWSER_POINTER_POINT           = GUI_POINTER_POINT,
-       BROWSER_POINTER_CARET           = GUI_POINTER_CARET,
-       BROWSER_POINTER_MENU            = GUI_POINTER_MENU,
-       BROWSER_POINTER_UP              = GUI_POINTER_UP,
-       BROWSER_POINTER_DOWN            = GUI_POINTER_DOWN,
-       BROWSER_POINTER_LEFT            = GUI_POINTER_LEFT,
-       BROWSER_POINTER_RIGHT           = GUI_POINTER_RIGHT,
-       BROWSER_POINTER_RU              = GUI_POINTER_RU,
-       BROWSER_POINTER_LD              = GUI_POINTER_LD,
-       BROWSER_POINTER_LU              = GUI_POINTER_LU,
-       BROWSER_POINTER_RD              = GUI_POINTER_RD,
-       BROWSER_POINTER_CROSS           = GUI_POINTER_CROSS,
-       BROWSER_POINTER_MOVE            = GUI_POINTER_MOVE,
-       BROWSER_POINTER_WAIT            = GUI_POINTER_WAIT,
-       BROWSER_POINTER_HELP            = GUI_POINTER_HELP,
-       BROWSER_POINTER_NO_DROP         = GUI_POINTER_NO_DROP,
-       BROWSER_POINTER_NOT_ALLOWED     = GUI_POINTER_NOT_ALLOWED,
-       BROWSER_POINTER_PROGRESS        = GUI_POINTER_PROGRESS,
-       BROWSER_POINTER_AUTO
-} browser_pointer_shape;
-
 /** Browser window data. */
 struct browser_window {
        /** Page currently displayed, or 0. Must have status READY or DONE. */
diff --git a/desktop/gui.h b/desktop/gui.h
index eccf0b4..aa3fc81 100644
--- a/desktop/gui.h
+++ b/desktop/gui.h
@@ -53,14 +53,6 @@ struct browser_window;
 struct selection;
 struct form_control;
 
-typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, GUI_POINTER_CARET,
-              GUI_POINTER_MENU, GUI_POINTER_UP, GUI_POINTER_DOWN,
-              GUI_POINTER_LEFT, GUI_POINTER_RIGHT, GUI_POINTER_RU,
-              GUI_POINTER_LD, GUI_POINTER_LU, GUI_POINTER_RD,
-              GUI_POINTER_CROSS, GUI_POINTER_MOVE, GUI_POINTER_WAIT,
-              GUI_POINTER_HELP, GUI_POINTER_NO_DROP, GUI_POINTER_NOT_ALLOWED,
-               GUI_POINTER_PROGRESS } gui_pointer_shape;
-
 #include <stdbool.h>
 
 #include <libwapcaplet/libwapcaplet.h>
@@ -69,6 +61,7 @@ typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, 
GUI_POINTER_CARET,
 #include "utils/config.h"
 #include "content/hlcache.h"
 #include "desktop/download.h"
+#include "desktop/mouse.h"
 #include "desktop/search.h"
 #include "utils/errors.h"
 
diff --git a/desktop/mouse.h b/desktop/mouse.h
index 84af82f..42603a6 100644
--- a/desktop/mouse.h
+++ b/desktop/mouse.h
@@ -63,6 +63,40 @@ typedef enum {
                                         * (eg. Alt) */
 } browser_mouse_state;
 
+
+typedef enum { GUI_POINTER_DEFAULT, GUI_POINTER_POINT, GUI_POINTER_CARET,
+              GUI_POINTER_MENU, GUI_POINTER_UP, GUI_POINTER_DOWN,
+              GUI_POINTER_LEFT, GUI_POINTER_RIGHT, GUI_POINTER_RU,
+              GUI_POINTER_LD, GUI_POINTER_LU, GUI_POINTER_RD,
+              GUI_POINTER_CROSS, GUI_POINTER_MOVE, GUI_POINTER_WAIT,
+              GUI_POINTER_HELP, GUI_POINTER_NO_DROP, GUI_POINTER_NOT_ALLOWED,
+               GUI_POINTER_PROGRESS } gui_pointer_shape;
+
+/** Mouse pointer type */
+typedef enum {
+       BROWSER_POINTER_DEFAULT         = GUI_POINTER_DEFAULT,
+       BROWSER_POINTER_POINT           = GUI_POINTER_POINT,
+       BROWSER_POINTER_CARET           = GUI_POINTER_CARET,
+       BROWSER_POINTER_MENU            = GUI_POINTER_MENU,
+       BROWSER_POINTER_UP              = GUI_POINTER_UP,
+       BROWSER_POINTER_DOWN            = GUI_POINTER_DOWN,
+       BROWSER_POINTER_LEFT            = GUI_POINTER_LEFT,
+       BROWSER_POINTER_RIGHT           = GUI_POINTER_RIGHT,
+       BROWSER_POINTER_RU              = GUI_POINTER_RU,
+       BROWSER_POINTER_LD              = GUI_POINTER_LD,
+       BROWSER_POINTER_LU              = GUI_POINTER_LU,
+       BROWSER_POINTER_RD              = GUI_POINTER_RD,
+       BROWSER_POINTER_CROSS           = GUI_POINTER_CROSS,
+       BROWSER_POINTER_MOVE            = GUI_POINTER_MOVE,
+       BROWSER_POINTER_WAIT            = GUI_POINTER_WAIT,
+       BROWSER_POINTER_HELP            = GUI_POINTER_HELP,
+       BROWSER_POINTER_NO_DROP         = GUI_POINTER_NO_DROP,
+       BROWSER_POINTER_NOT_ALLOWED     = GUI_POINTER_NOT_ALLOWED,
+       BROWSER_POINTER_PROGRESS        = GUI_POINTER_PROGRESS,
+       BROWSER_POINTER_AUTO
+} browser_pointer_shape;
+
+
 void browser_mouse_state_dump(browser_mouse_state mouse);
 
 #endif
diff --git a/render/html.c b/render/html.c
index 7c7b797..ed7e7eb 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1252,6 +1252,11 @@ html_object_callback(hlcache_handle *object,
                content_broadcast(&c->base, CONTENT_MSG_SAVELINK, event->data);
                break;
 
+       case CONTENT_MSG_POINTER:
+               /* Pass it on */
+               content_broadcast(&c->base, CONTENT_MSG_POINTER, event->data);
+               break;
+
        default:
                assert(0);
        }
diff --git a/render/html_interaction.c b/render/html_interaction.c
index a3cfaa9..1365d77 100644
--- a/render/html_interaction.c
+++ b/render/html_interaction.c
@@ -829,8 +829,10 @@ void html_mouse_action(struct content *c, struct 
browser_window *bw,
                content_broadcast(c, CONTENT_MSG_STATUS, msg_data);
        }
 
-       if (!iframe)
-               browser_window_set_pointer(bw, pointer);
+       if (!iframe) {
+               msg_data.pointer = pointer;
+               content_broadcast(c, CONTENT_MSG_POINTER, msg_data);
+       }
 
        /* deferred actions that can cause this browser_window to be destroyed
         * and must therefore be done after set_status/pointer
@@ -861,6 +863,7 @@ void html_overflow_scroll_callback(void *client_data,
        struct html_scrollbar_data *data = client_data;
        html_content *html = (html_content *)data->c;
        struct box *box = data->box;
+       union content_msg_data msg_data;
        
        switch(scrollbar_data->msg) {
                case SCROLLBAR_MSG_MOVED:
@@ -885,9 +888,10 @@ void html_overflow_scroll_callback(void *client_data,
 
                        browser_window_set_drag_type(html->bw,
                                        DRAGGING_NONE, NULL);
-                       
-                       browser_window_set_pointer(html->bw,
-                                       BROWSER_POINTER_DEFAULT);
+
+                       msg_data.pointer = BROWSER_POINTER_AUTO;
+                       content_broadcast(data->c, CONTENT_MSG_POINTER,
+                                       msg_data);
                        break;
        }
 }
diff --git a/render/textplain.c b/render/textplain.c
index 7411e3b..71d5765 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -676,6 +676,7 @@ void textplain_mouse_action(struct content *c, struct 
browser_window *bw,
 {
        textplain_content *text = (textplain_content *) c;
        browser_pointer_shape pointer = BROWSER_POINTER_DEFAULT;
+       union content_msg_data msg_data;
        const char *status = 0;
        size_t idx;
        int dir = 0;
@@ -708,7 +709,8 @@ void textplain_mouse_action(struct content *c, struct 
browser_window *bw,
        if (status != NULL)
                browser_window_set_status(bw, status);
 
-       browser_window_set_pointer(bw, pointer);
+       msg_data.pointer = pointer;
+       content_broadcast(c, CONTENT_MSG_POINTER, msg_data);
 }
 
 


-- 
NetSurf Browser

_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to