diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-24 20:08:59 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-24 20:08:59 +0000 |
commit | 12890d3c60fdfde9c3f18af411a762ff1e0e27c2 (patch) | |
tree | 0c49b22188b98e962afdf3b209c55b35b0a4aba1 | |
parent | f058e9881764888dc78b4ac32a6dca107bb9b17b (diff) | |
download | netsurf-12890d3c60fdfde9c3f18af411a762ff1e0e27c2.tar.gz |
Attempt fix screen close problem
-rwxr-xr-x | amiga/gui.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index e544dbd60..9352fcec1 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2371,11 +2371,13 @@ void ami_quit_netsurf_delayed(void) } } -void ami_gui_close_screen(struct Screen *scrn) +void ami_gui_close_screen(struct Screen *scrn, BOOL locked_screen) { if(scrn == NULL) return; if(CloseScreen(scrn)) return; + if(locked_screen == TRUE) return; + /* If this is our own screen, wait for visitor windows to close */ LOG(("Waiting for visitor windows to close...")); do { Delay(50); @@ -2404,10 +2406,7 @@ void gui_quit(void) FreeScreenDrawInfo(scrn, dri); ami_close_fonts(); - - /* If it is our public screen, close it or wait until the visitor windows leave */ - if(locked_screen == FALSE) ami_gui_close_screen(scrn); - + ami_gui_close_screen(scrn, locked_screen); FreeVec(nsscreentitle); ami_context_menu_free(); |