Give the selection context the current bw when it's created.

svn path=/trunk/netsurf/; revision=12485
This commit is contained in:
Michael Drake 2011-06-16 09:07:13 +00:00
parent 790bdf2e2a
commit db45778fb1
1 changed files with 2 additions and 0 deletions

View File

@ -238,7 +238,9 @@ struct browser_window *browser_window_create(const char *url,
bw->border = true;
bw->no_resize = true;
bw->last_action = wallclock();
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,