src/video/x11/SDL_x11wm.c
branchSDL-1.2
changeset 3872 be84332e761e
parent 1849 b5a4ac87b98c
child 3896 1a327643e741
--- a/src/video/x11/SDL_x11wm.c	Sun Sep 24 00:04:06 2006 +0000
+++ b/src/video/x11/SDL_x11wm.c	Sun Sep 24 00:08:28 2006 +0000
@@ -398,6 +398,8 @@
 	XSync(SDL_Display, False);
 	SDL_Unlock_EventThread();
 }
+
+#include <stdio.h>
 int X11_GetWMInfo(_THIS, SDL_SysWMinfo *info)
 {
 	if ( info->version.major <= SDL_MAJOR_VERSION ) {
@@ -410,6 +412,14 @@
 			info->info.x11.fswindow = FSwindow;
 			info->info.x11.wmwindow = WMwindow;
 		}
+
+
+		if ( SDL_VERSIONNUM(info->version.major,
+		                    info->version.minor,
+		                    info->version.patch) >= 1212 ) {
+			info->info.x11.gfxdisplay = GFX_Display;
+		}
+
 		info->info.x11.lock_func = lock_display;
 		info->info.x11.unlock_func = unlock_display;
 		return(1);