release screen-lock when second lock check fails.

svn path=/trunk/netsurf/; revision=13208
This commit is contained in:
Ole Loots 2011-11-29 23:19:18 +00:00
parent 1c640bc529
commit 5f69abb504
1 changed files with 4 additions and 2 deletions

View File

@ -315,8 +315,10 @@ static int lock( GEM_PLOTTER self )
self->flags |= PLOT_FLAG_LOCKED;
if( !wind_update(BEG_UPDATE|0x100) )
return(0);
if( !wind_update(BEG_MCTRL|0x100) )
return(0);
if( !wind_update(BEG_MCTRL|0x100) ){
wind_update(END_UPDATE);
return(0);
}
graf_mouse(M_OFF, NULL);
return( 1 );
}