Cleanup drag end.

This commit is contained in:
Michael Drake 2012-08-01 22:21:36 +01:00
parent 40a754a362
commit 75212235f8

View File

@ -653,7 +653,9 @@ fb_browser_window_click(fbtk_widget_t *widget, fbtk_callback_info *cbi)
if (gui_drag.state == GUI_DRAG_DRAG) {
/* End of a drag, rather than click */
gui_drag.state = GUI_DRAG_NONE;
framebuffer_set_cursor(&pointer_image);
/* Tell core */
browser_window_mouse_track(gw->bw, 0, x, y);
break;
}
/* This is a click;
@ -667,6 +669,9 @@ fb_browser_window_click(fbtk_widget_t *widget, fbtk_callback_info *cbi)
if (gui_drag.state == GUI_DRAG_DRAG) {
/* End of a drag, rather than click */
gui_drag.state = GUI_DRAG_NONE;
/* Tell core */
browser_window_mouse_track(gw->bw, 0, x, y);
break;
}
/* This is a click;