From f9566b64050c76c9fc78a0b691cf8c83643c847b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 1 Jul 2011 11:16:43 +0000 Subject: Set/unset selection context's browser window on content_open/content_close. svn path=/trunk/netsurf/; revision=12551 --- desktop/browser.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index 827896835..cc19ccdc0 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -292,7 +292,6 @@ struct browser_window *browser_window_create(const char *url, bw->focus = bw; bw->sel = selection_create(); - selection_set_browser_window(bw->sel, bw); /* gui window */ /* from the front end's pov, it clones the top level browser window, @@ -1683,10 +1682,6 @@ void browser_window_mouse_track(struct browser_window *bw, browser_window_mouse_drag_end(bw, mouse, x, y); } - if (bw->drag_type != DRAGGING_NONE) { - selection_set_browser_window(bw->sel, bw); - } - if (bw->drag_type == DRAGGING_FRAME) { browser_window_resize_frame(bw, bw->x0 + x, bw->y0 + y); } else if (bw->drag_type == DRAGGING_PAGE_SCROLL) { @@ -1741,8 +1736,6 @@ void browser_window_mouse_click(struct browser_window *bw, top = browser_window_get_root(bw); top->focus = bw; - selection_set_browser_window(bw->sel, bw); - switch (content_get_type(c)) { case CONTENT_HTML: case CONTENT_TEXTPLAIN: -- cgit v1.2.3