diff options
author | marha <marha@users.sourceforge.net> | 2010-10-14 09:46:33 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-10-14 09:46:33 +0000 |
commit | d621ea397a3d181e7a0bf07d72bd21e116fccdb8 (patch) | |
tree | 051652a7a9f4b063a9362cc712a6e04b4e151de0 /xorg-server/dix/dispatch.c | |
parent | 2131cbeb6f10b52a48d2ce25cfe27417e173afa5 (diff) | |
download | vcxsrv-d621ea397a3d181e7a0bf07d72bd21e116fccdb8.tar.gz vcxsrv-d621ea397a3d181e7a0bf07d72bd21e116fccdb8.tar.bz2 vcxsrv-d621ea397a3d181e7a0bf07d72bd21e116fccdb8.zip |
xserver git update 14/10/2010
Diffstat (limited to 'xorg-server/dix/dispatch.c')
-rw-r--r-- | xorg-server/dix/dispatch.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/xorg-server/dix/dispatch.c b/xorg-server/dix/dispatch.c index b651cb28b..b321e995b 100644 --- a/xorg-server/dix/dispatch.c +++ b/xorg-server/dix/dispatch.c @@ -916,23 +916,14 @@ GetGeometry(ClientPtr client, xGetGeometryReply *rep) rep->width = pDraw->width;
rep->height = pDraw->height;
- /* XXX - Because the pixmap-implementation of the multibuffer extension
- * may have the buffer-id's drawable resource value be a pointer
- * to the buffer's window instead of the buffer itself
- * (this happens if the buffer is the displayed buffer),
- * we also have to check that the id matches before we can
- * truly say that it is a DRAWABLE_WINDOW.
- */
-
- if ((pDraw->type == UNDRAWABLE_WINDOW) ||
- ((pDraw->type == DRAWABLE_WINDOW) && (stuff->id == pDraw->id)))
+ if (WindowDrawable(pDraw->type))
{
WindowPtr pWin = (WindowPtr)pDraw;
rep->x = pWin->origin.x - wBorderWidth (pWin);
rep->y = pWin->origin.y - wBorderWidth (pWin);
rep->borderWidth = pWin->borderWidth;
}
- else /* DRAWABLE_PIXMAP or DRAWABLE_BUFFER */
+ else /* DRAWABLE_PIXMAP */
{
rep->x = rep->y = rep->borderWidth = 0;
}
|