HWND fw = GetForegroundWindow ();
HWND w1 = mon->hAmigaWnd;
HWND w2 = mon->hMainWnd;
- HWND w3 = NULL;
-#ifdef RETROPLATFORM
- if (rp_isactive ())
- w3 = rp_getparent ();
-#endif
+
if (f != w1 && f != w2)
donotfocus = true;
- if (w3 != NULL && f == w3)
- donotfocus = false;
-#if 0
+
+
+ //write_log(_T("f=%p fw=%p w1=%p w2=%p\n"), f, fw, w1, w2);
+
#ifdef RETROPLATFORM
- if (rp_isactive () && isfullscreen () == 0)
- donotfocus = false;
-#endif
+ if (rp_isactive()) {
+ HWND hGuestParent = rp_getparent();
+ DWORD dwHostProcessId;
+ GetWindowThreadProcessId(hGuestParent, &dwHostProcessId);
+ if (fw) {
+ DWORD dwForegroundProcessId = 0;
+ GetWindowThreadProcessId(fw, &dwForegroundProcessId);
+
+ //write_log(_T("dwForegroundProcessId=%p dwHostProcessId=%p\n"), dwForegroundProcessId, dwHostProcessId);
+
+ if (dwForegroundProcessId == dwHostProcessId) {
+ donotfocus = false;
+ }
+ }
+ }
#endif
+
if (isfullscreen () > 0)
donotfocus = false;
return donotfocus == false;
#define GETBDM(x) (((x) - ((x / 10000) * 10000)) / 100)
#define GETBDD(x) ((x) % 100)
-#define WINUAEPUBLICBETA 1
+#define WINUAEPUBLICBETA 0
#define LANG_DLL 1
#define LANG_DLL_FULL_VERSION_MATCH 0
#define WINUAEBETA _T("")
#endif
-#define WINUAEDATE MAKEBD(2018, 7, 14)
+#define WINUAEDATE MAKEBD(2018, 7, 16)
//#define WINUAEEXTRA _T("AmiKit Preview")
//#define WINUAEEXTRA _T("Amiga Forever Edition")
ew(hDlg, IDC_SCREENMODE_NATIVE3, FALSE);
hide(hDlg, IDC_SCREENMODE_NATIVE3, TRUE);
}
-#ifdef WINUAEPUBLICBETA
+#if WINUAEPUBLICBETA
hide(hDlg, IDC_DISPLAY_VARSYNC, FALSE);
#endif
}
\r
+4.0.1\r
+\r
Beta 6:\r
\r
- Statefiles now include full relative and absolute path (disks, harddrives etc), now supports restoring statefile paths correctly even if relative path mode changed between save and restore. Old versions ignore new fields, old statefiles work like previously.\r
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?define ProductName = "WinUAE" ?>
- <?define ProductVersion = "4.0.0" ?>
- <?define ProductFullVersion = "4.0.0.0" ?>
+ <?define ProductVersion = "4.0.1" ?>
+ <?define ProductFullVersion = "4.0.1.0" ?>
<?define ProductAuthor = "Arabuusimiehet" ?>
<?if $(var.Platform) = x64 ?>