public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [PATCH setup] Make sure that fatal error messages are visible
@ 2017-12-19  0:53 Ken Brown
  2017-12-20 16:19 ` Jon Turney
  0 siblings, 1 reply; 8+ messages in thread
From: Ken Brown @ 2017-12-19  0:53 UTC (permalink / raw)
  To: cygwin-apps

The message box produced by TOPLEVEL_CATCH could be hidden by whatever
window was previously being displayed, so that setup appeared to hang.
Fix this by giving fatal error message boxes type MB_SETFOREGROUND.
---
 msg.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/msg.cc b/msg.cc
index 403e78a..0ba4839 100644
--- a/msg.cc
+++ b/msg.cc
@@ -83,7 +83,7 @@ fatal (HWND owner, int id, ...)
 {
   va_list args;
   va_start (args, id);
-  mbox (owner, "fatal", 0, id, args);
+  mbox (owner, "fatal", MB_SETFOREGROUND, id, args);
   Logger ().exit (1);
 }
 
-- 
2.15.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-01-05 13:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-19  0:53 [PATCH setup] Make sure that fatal error messages are visible Ken Brown
2017-12-20 16:19 ` Jon Turney
2017-12-20 17:09   ` Ken Brown
2017-12-21  3:02     ` Brian Inglis
2017-12-21 13:20       ` Ken Brown
2017-12-21 22:55     ` Ken Brown
2017-12-28  1:38       ` Ken Brown
2018-01-05 13:54         ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).