From 3dd19782fe63ab53892d9a395f5620060b6db949 Mon Sep 17 00:00:00 2001 From: Bernhard Miklautz Date: Mon, 5 Dec 2011 15:20:59 +0100 Subject: [PATCH] xfreerdp-server: fix compilation when xdamage is disabled --- server/X11/xf_peer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/X11/xf_peer.c b/server/X11/xf_peer.c index 91eb962cf..b383dc91b 100644 --- a/server/X11/xf_peer.c +++ b/server/X11/xf_peer.c @@ -47,8 +47,10 @@ xfInfo* xf_info_init() xfInfo* xfi; int pf_count; int vi_count; +#ifdef WITH_XDAMAGE int damage_event; int damage_error; +#endif XVisualInfo* vi; XVisualInfo* vis; XVisualInfo template; @@ -121,7 +123,9 @@ xfInfo* xf_info_init() xfi->clrconv->alpha = 1; XSelectInput(xfi->display, DefaultRootWindow(xfi->display), SubstructureNotifyMask); +#ifdef WITH_XDAMAGE XDamageQueryExtension(xfi->display, &damage_event, &damage_error); +#endif return xfi; }