summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2016-01-12 16:19:30 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2016-01-12 16:19:30 +0000
commit7544b86fee94c1414278c878ca093d34a7ac3872 (patch)
treeaeee96e59ac41bd87df67a79e0e152c1dc339379
parentfc7b11b685a3c2c81c6961f9ee034bdc0e31f88c (diff)
Improvements to WM debug
-rw-r--r--hw/xwin/winmultiwindowwm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c
index f18b860cf..703904e53 100644
--- a/hw/xwin/winmultiwindowwm.c
+++ b/hw/xwin/winmultiwindowwm.c
@@ -563,8 +563,10 @@ getHwnd(WMInfoPtr pWMInfo, xcb_window_t iWindow)
}
/* Some sanity checks */
- if (!hWnd)
+ if (!hWnd) {
+ winDebug("getHwnd: no HWND\n");
return NULL;
+ }
if (!IsWindow(hWnd))
return NULL;
@@ -959,8 +961,8 @@ winMultiWindowWMProc(void *pArg)
}
#if CYGMULTIWINDOW_DEBUG
- ErrorF("winMultiWindowWMProc - MSG: %s (%d) ID: %d\n",
- MessageName(&(pNode->msg)), (int)pNode->msg.msg, (int)pNode->msg.dwID);
+ ErrorF("winMultiWindowWMProc - MSG: %s (%d) Window: %08x ID: %d\n",
+ MessageName(&(pNode->msg)), (int)pNode->msg.msg, pNode->msg.iWindow, (int)pNode->msg.dwID);
#endif
/* Branch on the message type */
@@ -1859,7 +1861,7 @@ winSendMessageToWM(void *pWMInfo, winWMMessagePtr pMsg)
WMMsgNodePtr pNode;
#if CYGMULTIWINDOW_DEBUG
- ErrorF("winSendMessageToWM %s\n", MessageName(pMsg));
+ ErrorF("winSendMessageToWM %s %08x %d\n", MessageName(pMsg), pMsg->iWindow, pMsg->dwID);
#endif
pNode = malloc(sizeof(WMMsgNodeRec));