summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-09-04 05:18:31 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-09-12 15:22:06 -0700
commit54162aca404a7de2e560cc2aea01445e14742efe (patch)
treec796beeb9130461dbb93d1bc87908672aca6fc0c /miext
parentce781cac1b52003da6c025cd29e2c2ad97dbb324 (diff)
XQuartz: Fixed a crash in RootlessNativeWindowMoved
(cherry picked from commit a16048cec08e173ce42a78a77704f5fdfcb4480f)
Diffstat (limited to 'miext')
-rw-r--r--miext/rootless/rootlessWindow.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/miext/rootless/rootlessWindow.c b/miext/rootless/rootlessWindow.c
index f9ae0ead1..35bcba031 100644
--- a/miext/rootless/rootlessWindow.c
+++ b/miext/rootless/rootlessWindow.c
@@ -143,38 +143,17 @@ void RootlessNativeWindowMoved (WindowPtr pWin) {
int sx, sy, err;
XID vlist[2];
Mask mask;
- ClientPtr client, pClient;
+ ClientPtr pClient;
RootlessWindowRec *winRec;
-
-#ifdef XQUARTZ
- /* We're seeing a crash here, but I'm not sure what's causing it... so putting in some debugging */
- snprintf(__crashreporter_info__, __crashreporter_info__len,
- "%s\n\RootlessNativeWindowMoved debug data\npWin=%p\n",
- __crashreporter_info__base, pWin);
- ErrorF("RootlessNativeWindowMoved debug data\npWin=%p\n", pWin);
-#endif
winRec = WINREC(pWin);
-
-#ifdef XQUARTZ
- /* We're seeing a crash here, but I'm not sure what's causing it... so putting in some debugging */
- snprintf(__crashreporter_info__, __crashreporter_info__len, "%swinRec=%p\nwinRec->wid=%d\n", __crashreporter_info__, winRec, winRec ? (int)winRec->wid : 0);
- ErrorF("winRec=%p\nwinRec->wid=%d\n", winRec, winRec ? (int)winRec->wid : 0);
-#endif
if (xp_get_window_bounds ((xp_window_id)winRec->wid, &bounds) != Success) return;
-#ifdef XQUARTZ
- /* We're seeing a crash here, but I'm not sure what's causing it... so putting in some debugging */
- snprintf(__crashreporter_info__, __crashreporter_info__len, "%spWin->drawable.pScreen=%p\npWin->drawable.pScreen->myNum=%d\n", __crashreporter_info__, pWin->drawable.pScreen, pWin->drawable.pScreen ? pWin->drawable.pScreen->myNum : 0);
- ErrorF("pWin->drawable.pScreen=%p\npWin->drawable.pScreen->myNum=%d\n", pWin->drawable.pScreen, pWin->drawable.pScreen ? pWin->drawable.pScreen->myNum : 0);
-#endif
-
sx = dixScreenOrigins[pWin->drawable.pScreen->myNum].x + darwinMainScreenX;
sy = dixScreenOrigins[pWin->drawable.pScreen->myNum].y + darwinMainScreenY;
/* Fake up a ConfigureWindow packet to resize the window to the current bounds. */
-
vlist[0] = (INT16) bounds.x1 - sx;
vlist[1] = (INT16) bounds.y1 - sy;
mask = CWX | CWY;
@@ -190,7 +169,7 @@ void RootlessNativeWindowMoved (WindowPtr pWin) {
notification-response feedback loops) */
no_configure_window = TRUE;
- ConfigureWindow (pWin, mask, vlist, client);
+ ConfigureWindow (pWin, mask, vlist, pClient);
no_configure_window = FALSE;
}