From 0c88c3a89a51b5f04a8e345d482be1c0cb8bf5f8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 12 Feb 2013 12:18:26 +0000 Subject: [PATCH] Pass double clicks to browser windows. --- riscos/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/riscos/window.c b/riscos/window.c index 2f8bec614..b137af1fc 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -481,7 +481,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, window.title_flags = wimp_ICON_TEXT | wimp_ICON_INDIRECTED | wimp_ICON_HCENTRED; - window.work_flags = wimp_BUTTON_CLICK_DRAG << + window.work_flags = wimp_BUTTON_DOUBLE_CLICK_DRAG << wimp_ICON_BUTTON_TYPE_SHIFT; window.sprite_area = wimpspriteop_AREA; window.xmin = 1; @@ -1775,7 +1775,7 @@ bool ro_gui_window_click(wimp_pointer *pointer) if (ro_gui_window_to_window_pos(g, pointer->pos.x, pointer->pos.y, &pos)) browser_window_mouse_click(g->bw, ro_gui_mouse_click_state(pointer->buttons, - wimp_BUTTON_CLICK_DRAG), + wimp_BUTTON_DOUBLE_CLICK_DRAG), pos.x, pos.y); return true; @@ -3271,7 +3271,7 @@ void ro_gui_window_mouse_at(struct gui_window *g, wimp_pointer *pointer) if (ro_gui_window_to_window_pos(g, pointer->pos.x, pointer->pos.y, &pos)) browser_window_mouse_track(g->bw, ro_gui_mouse_drag_state(pointer->buttons, - wimp_BUTTON_CLICK_DRAG), + wimp_BUTTON_DOUBLE_CLICK_DRAG), pos.x, pos.y); }