From a8ec9eca850f2a7ad4c5cf31c1c011c120688496 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 7 Jun 2010 13:39:11 -0700 Subject: Fix a couple more possible errors with input-only windows Using type == DRAWABLE_WINDOW to differentiate between pixmaps and windows isn't sufficient as input-only windows will end up in the pixmap case. This patch changes a few more code paths to use WindowDrawable instead. Signed-off-by: Keith Packard Reviewed-by: Jamey Sharp --- hw/xnest/Drawable.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/xnest') diff --git a/hw/xnest/Drawable.h b/hw/xnest/Drawable.h index d94916ecd..4268b7b83 100644 --- a/hw/xnest/Drawable.h +++ b/hw/xnest/Drawable.h @@ -19,7 +19,7 @@ is" without express or implied warranty. #include "XNPixmap.h" #define xnestDrawable(pDrawable) \ - ((pDrawable)->type == DRAWABLE_WINDOW ? \ + (WindowDrawable((pDrawable)->type) ? \ xnestWindow((WindowPtr)pDrawable) : \ xnestPixmap((PixmapPtr)pDrawable)) -- cgit v1.2.3