Set input_window on click, instead of asserting input window equals the receiver window.

svn path=/trunk/netsurf/; revision=13253
This commit is contained in:
Ole Loots 2011-12-06 22:49:54 +00:00
parent 9f1de63949
commit 97dce15b9e
1 changed files with 5 additions and 5 deletions

View File

@ -217,10 +217,10 @@ static void __CDECL browser_evnt_mbutton( COMPONENT * c, long buff[8], void * da
LGRECT cwork;
browser_mouse_state bmstate = 0;
struct gui_window * gw = data;
if( input_window != gw ) {
return;
}
if( input_window != gw ){
input_window = gw;
}
window_set_focus( gw, BROWSER, (void*)gw->browser );
browser_get_rect( gw, BR_CONTENT, &cwork );