• R/O
  • SSH
  • HTTPS

xangband: Commit


Commit MetaInfo

Revision1890 (tree)
Time2013-03-16 18:02:16
Authoriks

Log Message

Fix bug of child windows that can't not open again in the process when they are closed with selecting 'Close' in the window menu of the title bar

Change Summary

Incremental Difference

--- TinyAngband/trunk/src/main-win.c (revision 1889)
+++ TinyAngband/trunk/src/main-win.c (revision 1890)
@@ -5377,25 +5377,15 @@
53775377 return 0;
53785378 }
53795379
5380- case WM_NCLBUTTONDOWN:
5380+ case WM_CLOSE:
53815381 {
5382-
5383-#ifdef HTCLOSE
5384- if (wParam == HTCLOSE) wParam = HTSYSMENU;
5385-#endif /* HTCLOSE */
5386-
5387- if (wParam == HTSYSMENU)
5382+ if (td->visible)
53885383 {
5389- if (td->visible)
5390- {
5391- td->visible = FALSE;
5392- ShowWindow(td->w, SW_HIDE);
5393- }
5394-
5395- return 0;
5384+ td->visible = FALSE;
5385+ ShowWindow(td->w, SW_HIDE);
53965386 }
53975387
5398- break;
5388+ return 0;
53995389 }
54005390 }
54015391
Show on old repository browser