mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Ensure top level browser window has focus by default.
svn path=/trunk/netsurf/; revision=12495
This commit is contained in:
parent
3c74989841
commit
dd653479b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user