Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/0b67394618b38a299dab9b65b66d7981f0df46e0
...commit
http://git.netsurf-browser.org/netsurf.git/commit/0b67394618b38a299dab9b65b66d7981f0df46e0
...tree
http://git.netsurf-browser.org/netsurf.git/tree/0b67394618b38a299dab9b65b66d7981f0df46e0
The branch, master has been updated
via 0b67394618b38a299dab9b65b66d7981f0df46e0 (commit)
from c80551b64b57b6200bd0ea012dd14118725ad64d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=0b67394618b38a299dab9b65b66d7981f0df46e0
commit 0b67394618b38a299dab9b65b66d7981f0df46e0
Author: Chris Young <[email protected]>
Commit: Chris Young <[email protected]>
Don't attempt to close a public screen we're not the owner of.
I've never been entirely clear on what the correct approach here is, but
OS4 has a feature where it will auto open/close a public screen for you. In
this case, in the microseconds between unlocking that screen and attempting to
close it, OS4 has already disposed of the screen and NetSurf has crashed, so we
assume the owner will handle the closing instead.
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 8672a93..7e5eadc 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -3006,6 +3006,9 @@ static void ami_gui_close_screen(struct Screen *scrn,
BOOL locked_screen, BOOL d
locked_screen = FALSE;
}
+ /* If this is our own screen, wait for visitor windows to close */
+ if(screen_signal == -1) return;
+
if(CloseScreen(scrn) == TRUE) {
if(screen_signal != -1) {
FreeSignal(screen_signal);
@@ -3016,9 +3019,6 @@ static void ami_gui_close_screen(struct Screen *scrn,
BOOL locked_screen, BOOL d
}
if(donotwait == TRUE) return;
- /* If this is our own screen, wait for visitor windows to close */
- if(screen_signal == -1) return;
-
ULONG scrnsig = 1 << screen_signal;
LOG("Waiting for visitor windows to close... (signal)");
Wait(scrnsig);
-----------------------------------------------------------------------
Summary of changes:
frontends/amiga/gui.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 8672a93..7e5eadc 100644
--- a/frontends/amiga/gui.c
+++ b/frontends/amiga/gui.c
@@ -3006,6 +3006,9 @@ static void ami_gui_close_screen(struct Screen *scrn,
BOOL locked_screen, BOOL d
locked_screen = FALSE;
}
+ /* If this is our own screen, wait for visitor windows to close */
+ if(screen_signal == -1) return;
+
if(CloseScreen(scrn) == TRUE) {
if(screen_signal != -1) {
FreeSignal(screen_signal);
@@ -3016,9 +3019,6 @@ static void ami_gui_close_screen(struct Screen *scrn,
BOOL locked_screen, BOOL d
}
if(donotwait == TRUE) return;
- /* If this is our own screen, wait for visitor windows to close */
- if(screen_signal == -1) return;
-
ULONG scrnsig = 1 << screen_signal;
LOG("Waiting for visitor windows to close... (signal)");
Wait(scrnsig);
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org