Ensure top level browser window has focus by default.

svn path=/trunk/netsurf/; revision=12495
This commit is contained in:
Michael Drake 2011-06-22 13:52:56 +00:00
parent 3c74989841
commit dd653479b2

View File

@ -238,6 +238,7 @@ struct browser_window *browser_window_create(const char *url,
bw->border = true;
bw->no_resize = true;
bw->last_action = wallclock();
bw->focus = bw;
bw->sel = selection_create();
selection_set_browser_window(bw->sel, bw);
@ -1234,7 +1235,7 @@ void browser_window_destroy_internal(struct browser_window *bw)
top = top->parent;
if (top->focus == bw)
top->focus = NULL;
top->focus = top;
}
/* Destruction order is important: we must ensure that the frontend