[PATCH x11spice 10/10] Do not use show_cursor_check on older Xorg builds.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Versions prior to 1.20 do not have the show_cursor_check function.

Signed-off-by: Jeremy White <jwhite@xxxxxxxxxxxxxxx>
---
 spice-video-dummy/src/display.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/spice-video-dummy/src/display.c b/spice-video-dummy/src/display.c
index 786e6916..31be0416 100644
--- a/spice-video-dummy/src/display.c
+++ b/spice-video-dummy/src/display.c
@@ -113,10 +113,16 @@ dummy_crtc_hide_cursor(xf86CrtcPtr crtc)
 {
 }
 
+#if XF86_CRTC_VERSION > 7
 static Bool
+#else
+static void
+#endif
 dummy_crtc_show_cursor(xf86CrtcPtr crtc)
 {
+#if XF86_CRTC_VERSION > 7
     return TRUE;
+#endif
 }
 
 static Bool
@@ -141,8 +147,12 @@ static const xf86CrtcFuncsRec crtc_funcs = {
     .shadow_destroy = NULL,
     .set_cursor_colors = dummy_crtc_set_cursor_colors,
     .set_cursor_position = dummy_crtc_set_cursor_position,
+#if XF86_CRTC_VERSION > 7
     .show_cursor = NULL,
     .show_cursor_check = dummy_crtc_show_cursor,
+#else
+    .show_cursor = dummy_crtc_show_cursor,
+#endif
     .hide_cursor = dummy_crtc_hide_cursor,
     .load_cursor_image = NULL,
     .load_cursor_image_check = NULL,
-- 
2.20.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]