mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 23:28:05 +02:00
- more debugging output
This commit is contained in:
parent
797e1f0fee
commit
61e6b0ec76
1 changed files with 10 additions and 2 deletions
|
|
@ -18,6 +18,8 @@ extern void winGetWindowInfo(WindowPtr pWin, winWindowInfoPtr pWinInfo)
|
|||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||
winPrivScreenPtr pWinScreen = winGetScreenPriv(pScreen);
|
||||
|
||||
ErrorF("winGetWindowInfo: returning a window\n");
|
||||
|
||||
pWinInfo->hwnd = NULL;
|
||||
pWinInfo->hrgn = NULL;
|
||||
pWinInfo->rect = rect;
|
||||
|
|
@ -33,8 +35,10 @@ extern void winGetWindowInfo(WindowPtr pWin, winWindowInfoPtr pWinInfo)
|
|||
win32RootlessWindowPtr pRLWinPriv
|
||||
= (win32RootlessWindowPtr) RootlessFrameForWindow (pWin, FALSE);
|
||||
|
||||
if (pRLWinPriv == NULL)
|
||||
if (pRLWinPriv == NULL) {
|
||||
ErrorF("winGetWindowInfo: window is not rootless\n");
|
||||
return;
|
||||
}
|
||||
|
||||
RECT rect = {
|
||||
0,
|
||||
|
|
@ -46,13 +50,15 @@ extern void winGetWindowInfo(WindowPtr pWin, winWindowInfoPtr pWinInfo)
|
|||
pWinInfo->hwnd = pRLWinPriv->hWnd;
|
||||
pWinInfo->hrgn = NULL;
|
||||
pWinInfo->rect = rect;
|
||||
|
||||
ErrorF("winGetWindowInfo: window is rootless\n");
|
||||
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
RECT rect = {0, 0, 0, 0};
|
||||
ScreenPtr pScreen = g_ScreenInfo[0].pScreen;
|
||||
winPrivScreenPtr pWinScreen = winGetScreenPriv(pScreen);
|
||||
|
|
@ -64,6 +70,8 @@ extern void winGetWindowInfo(WindowPtr pWin, winWindowInfoPtr pWinInfo)
|
|||
if (pWinScreen == NULL)
|
||||
return;
|
||||
|
||||
ErrorF("winGetWindowInfo: returning root window\n");
|
||||
|
||||
pWinInfo->hwnd = pWinScreen->hwndScreen;
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue