summaryrefslogtreecommitdiffstats
path: root/xorg/X11R7.6/rdp/rdpPutImage.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/X11R7.6/rdp/rdpPutImage.c')
-rw-r--r--xorg/X11R7.6/rdp/rdpPutImage.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/xorg/X11R7.6/rdp/rdpPutImage.c b/xorg/X11R7.6/rdp/rdpPutImage.c
index fde2c0eb..2b17695b 100644
--- a/xorg/X11R7.6/rdp/rdpPutImage.c
+++ b/xorg/X11R7.6/rdp/rdpPutImage.c
@@ -120,23 +120,26 @@ rdpPutImage(DrawablePtr pDst, GCPtr pGC, int depth, int x, int y,
}
else
{
- pDstWnd = (WindowPtr)pDst;
-
- if (pDstWnd->viewable)
+ if (pDst->type == DRAWABLE_WINDOW)
{
- post_process = 1;
+ pDstWnd = (WindowPtr)pDst;
- if (g_do_dirty_ons)
- {
- LLOGLN(0, ("rdpPutImage: gettig dirty"));
- g_screenPriv.is_dirty = 1;
- pDirtyPriv = &g_screenPriv;
- dirty_type = RDI_IMGLL;
- }
- else
+ if (pDstWnd->viewable)
{
- rdpup_get_screen_image_rect(&id);
- got_id = 1;
+ post_process = 1;
+
+ if (g_do_dirty_ons)
+ {
+ LLOGLN(0, ("rdpPutImage: gettig dirty"));
+ g_screenPriv.is_dirty = 1;
+ pDirtyPriv = &g_screenPriv;
+ dirty_type = RDI_IMGLL;
+ }
+ else
+ {
+ rdpup_get_screen_image_rect(&id);
+ got_id = 1;
+ }
}
}
}