mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 11:24:57 +03:00
This is the actual fix for the crashing, although this is temporary as the
implementation needs changing. svn path=/trunk/netsurf/; revision=6283
This commit is contained in:
parent
aa787e9730
commit
83d696ace7
@ -734,8 +734,8 @@ void ami_handle_msg(void)
|
||||
|
||||
if(option_context_menu && rmbtrapped == FALSE)
|
||||
{
|
||||
SetAttrs(gwin->objects[OID_MAIN],WA_RMBTrap,TRUE);
|
||||
rmbtrapped=TRUE;
|
||||
SetWindowAttr(gwin->win,WA_RMBTrap,TRUE,1);
|
||||
rmbtrapped=TRUE; // crash points to this line
|
||||
}
|
||||
|
||||
if(gwin->mouse_state & BROWSER_MOUSE_PRESS_1)
|
||||
@ -757,7 +757,7 @@ void ami_handle_msg(void)
|
||||
{
|
||||
if(option_context_menu && rmbtrapped == TRUE)
|
||||
{
|
||||
SetAttrs(gwin->objects[OID_MAIN],WA_RMBTrap,FALSE);
|
||||
SetWindowAttr(gwin->win,WA_RMBTrap,FALSE,1);
|
||||
rmbtrapped=FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user