Force ShowWindow if XWin was started via run.exe. Fixes mainwindow not
showing bug
This commit is contained in:
parent
e8d3da3c75
commit
3dda2fe0e2
|
@ -1,3 +1,9 @@
|
|||
2005-02-02 Alexander Gottwald <ago at freedesktop dot org>
|
||||
|
||||
* wincreatewnd.c:
|
||||
Force ShowWindow if XWin was started via run.exe. Fixes mainwindow
|
||||
not showing bug
|
||||
|
||||
2005-01-31 Alexander Gottwald <ago at freedesktop dot org>
|
||||
|
||||
* winmultiwindowwindow.c
|
||||
|
|
|
@ -148,6 +148,7 @@ winCreateBoundingWindowWindowed (ScreenPtr pScreen)
|
|||
WNDCLASS wc;
|
||||
RECT rcClient, rcWorkArea;
|
||||
DWORD dwWindowStyle;
|
||||
BOOL fForceShowWindow = FALSE;
|
||||
char szTitle[256];
|
||||
|
||||
winDebug ("winCreateBoundingWindowWindowed - User w: %d h: %d\n",
|
||||
|
@ -169,9 +170,19 @@ winCreateBoundingWindowWindowed (ScreenPtr pScreen)
|
|||
#endif
|
||||
)
|
||||
{
|
||||
dwWindowStyle |= WS_CAPTION;
|
||||
if (pScreenInfo->fScrollbars)
|
||||
dwWindowStyle |= WS_THICKFRAME | WS_MAXIMIZEBOX;
|
||||
/* Try to handle startup via run.exe. run.exe instructs Windows to
|
||||
* hide all created windows. Detect this case and make sure the
|
||||
* window is shown nevertheless */
|
||||
STARTUPINFO startupInfo;
|
||||
GetStartupInfo(&startupInfo);
|
||||
if (startupInfo.dwFlags & STARTF_USESHOWWINDOW &&
|
||||
startupInfo.wShowWindow == SW_HIDE)
|
||||
{
|
||||
fForceShowWindow = TRUE;
|
||||
}
|
||||
dwWindowStyle |= WS_CAPTION;
|
||||
if (pScreenInfo->fScrollbars)
|
||||
dwWindowStyle |= WS_THICKFRAME | WS_MAXIMIZEBOX;
|
||||
}
|
||||
else
|
||||
dwWindowStyle |= WS_POPUP;
|
||||
|
@ -346,6 +357,12 @@ winCreateBoundingWindowWindowed (ScreenPtr pScreen)
|
|||
winDebug ("winCreateBoundingWindowWindowed - CreateWindowEx () returned\n");
|
||||
#endif
|
||||
|
||||
if (fForceShowWindow)
|
||||
{
|
||||
ErrorF("winCreateBoundingWindowWindowed - Setting normal windowstyle\n");
|
||||
ShowWindow(*phwnd, SW_SHOW);
|
||||
}
|
||||
|
||||
/* Get the client area coordinates */
|
||||
if (!GetClientRect (*phwnd, &rcClient))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue