diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-14 12:49:21 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-14 12:49:21 +0000 |
commit | d6cd92e0ccb2f78ec197e02ba714344951075a41 (patch) | |
tree | 1ee9363a747a65188c0f38831bf7d05eaab94748 /framebuffer/fb_rootwindow.c | |
parent | f90e43e2b05fef6bca65d086a78cec4cee3c0dec (diff) | |
download | netsurf-d6cd92e0ccb2f78ec197e02ba714344951075a41.tar.gz netsurf-d6cd92e0ccb2f78ec197e02ba714344951075a41.tar.bz2 |
Fix resource handling buy copying the GTK approach
Cleanup mouse movement handlig
svn path=/trunk/netsurf/; revision=6486
Diffstat (limited to 'framebuffer/fb_rootwindow.c')
-rw-r--r-- | framebuffer/fb_rootwindow.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/framebuffer/fb_rootwindow.c b/framebuffer/fb_rootwindow.c index 723237137..f95053c23 100644 --- a/framebuffer/fb_rootwindow.c +++ b/framebuffer/fb_rootwindow.c @@ -426,11 +426,20 @@ fb_rootwindow_click(struct gui_window *g, browser_mouse_state st, int x, int y) void -fb_rootwindow_move_abs(framebuffer_t *fb, struct gui_window *g, int x, int y) +fb_rootwindow_move(framebuffer_t *fb, + struct gui_window *g, + int x, + int y, + bool relative) { struct fb_widget *widget; - fb_cursor_move_abs(fb, x, y); + if (relative) { + x += fb_cursor_x(fb); + y += fb_cursor_y(fb); + } + + fb_cursor_move(fb, x, y); widget = widget_list; while (widget != NULL) { |