summaryrefslogtreecommitdiff
path: root/framebuffer/fb_rootwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'framebuffer/fb_rootwindow.c')
-rw-r--r--framebuffer/fb_rootwindow.c13
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) {