[aseprite] 164/308: Fix hang on Skia/Win when we press the HWND close button and an ui::Alert is shown
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:45:06 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit be214b715b7ad3d9c3e98238c0952ebf68419da0
Author: David Capello <davidcapello at gmail.com>
Date: Mon Dec 28 16:31:57 2015 -0300
Fix hang on Skia/Win when we press the HWND close button and an ui::Alert is shown
We don't have to close the OS window when its close button is pressed.
We just generate an CloseDisplay event and the client (app/ui layer) must
process it (e.g. check if there are no unsaved changes) and then close
the she::Display manually.
---
src/she/win/window.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/she/win/window.h b/src/she/win/window.h
index f16f764..0fc603c 100644
--- a/src/she/win/window.h
+++ b/src/she/win/window.h
@@ -234,7 +234,10 @@ namespace she {
Event ev;
ev.setType(Event::CloseDisplay);
queueEvent(ev);
- break;
+
+ // Don't close the window, it must be closed manually after
+ // the CloseDisplay event is processed.
+ return 0;
}
case WM_PAINT: {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list