diff --git a/src/conio/x_events.h b/src/conio/x_events.h
index 2aae497a14da4be64d85fbf28fa80f206156acf9..520fc6298a31ef37459958eb46ee3853136a9e08 100644
--- a/src/conio/x_events.h
+++ b/src/conio/x_events.h
@@ -63,7 +63,7 @@ struct x11 {
 #ifndef XPutPixel
 	void	(*XPutPixel)	(XImage*,int,int,unsigned long);
 #endif
-	void	(*XPutImage)	(Display*, Drawable, GC, XImage *, int,int,int,int,unsigned int,unsigned int);
+	int	(*XPutImage)	(Display*, Drawable, GC, XImage *, int,int,int,int,unsigned int,unsigned int);
 #ifndef XDestroyImage
 	void	(*XDestroyImage)(XImage*);
 #endif