diff options
author | Keith Packard <keithp@keithp.com> | 2010-06-07 13:39:11 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-10 19:15:28 -0700 |
commit | a8ec9eca850f2a7ad4c5cf31c1c011c120688496 (patch) | |
tree | b5bc031a9016f0d7854d25554fe0708dc9d19587 /hw/xnest | |
parent | 07a093add0b7e40c4d9b9b59273e3ff9e14a88a7 (diff) |
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 <keithp@keithp.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Diffstat (limited to 'hw/xnest')
-rw-r--r-- | hw/xnest/Drawable.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |