Fix drag selection

This commit is contained in:
Chris Young 2013-01-08 23:01:57 +00:00
parent d1dabbb0e2
commit 5aae2c3ed0
1 changed files with 3 additions and 4 deletions

View File

@ -320,14 +320,13 @@ void ami_drag_selection(struct selection *s)
if(ami_text_box_at_point(gwin, (ULONG *)&x, (ULONG *)&y)) if(ami_text_box_at_point(gwin, (ULONG *)&x, (ULONG *)&y))
{ {
iffh = ami_clipboard_init_internal(1); iffh = ami_clipboard_init_internal(1);
#if 0
/* TODO: fix this */ if(selection_copy_to_clipboard(s))
if(gui_copy_to_clipboard(s))
{ {
browser_window_mouse_click(gwin->bw, BROWSER_MOUSE_PRESS_1, x, y); browser_window_mouse_click(gwin->bw, BROWSER_MOUSE_PRESS_1, x, y);
browser_window_key_press(gwin->bw, KEY_PASTE); browser_window_key_press(gwin->bw, KEY_PASTE);
} }
#endif
ami_clipboard_free_internal(iffh); ami_clipboard_free_internal(iffh);
iffh = old_iffh; iffh = old_iffh;
} }