summaryrefslogtreecommitdiffstats
path: root/xorg
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-05-19 19:19:18 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-05-19 19:19:18 -0700
commitbc2c50602e8370875c7c02299dbec09e8300797d (patch)
tree664d77de9e5dd09bc5fe9b4cf6a23fe8b80146b1 /xorg
parent0f15c482e19e2ba54ed829fd1a537565ee7682fb (diff)
downloadxrdp-proprietary-bc2c50602e8370875c7c02299dbec09e8300797d.tar.gz
xrdp-proprietary-bc2c50602e8370875c7c02299dbec09e8300797d.zip
X11rdp: only remove pixmap if usage_hint is zero
Diffstat (limited to 'xorg')
-rw-r--r--xorg/X11R7.6/rdp/rdpdraw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xorg/X11R7.6/rdp/rdpdraw.c b/xorg/X11R7.6/rdp/rdpdraw.c
index 068f8267..e711733b 100644
--- a/xorg/X11R7.6/rdp/rdpdraw.c
+++ b/xorg/X11R7.6/rdp/rdpdraw.c
@@ -739,7 +739,8 @@ xrdp_is_os(PixmapPtr pix, rdpPixmapPtr priv)
{
width = pix->drawable.width;
height = pix->drawable.height;
- if ((pix->drawable.depth >= g_rdpScreen.depth) &&
+ if ((pix->usage_hint == 0) &&
+ (pix->drawable.depth >= g_rdpScreen.depth) &&
(width > 1) && (height > 1) && (priv->kind_width > 0))
{
LLOGLN(10, ("%d %d", priv->kind_width, pix->drawable.width));