Comparison between pointer and integer in latest dix/dispatch.c

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Colin Harrison 2010-10-13 10:20:06 -07:00 committed by Keith Packard
parent da4eebe58e
commit ff82f724e4

View File

@ -916,7 +916,7 @@ GetGeometry(ClientPtr client, xGetGeometryReply *rep)
rep->width = pDraw->width;
rep->height = pDraw->height;
if (WindowDrawable(pDraw))
if (WindowDrawable(pDraw->type))
{
WindowPtr pWin = (WindowPtr)pDraw;
rep->x = pWin->origin.x - wBorderWidth (pWin);