Dana Olson 11 years ago
parent
commit
103cc7ffda
2 changed files with 3 additions and 12 deletions
  1. 3 2
      platform/x11/os_x11.cpp
  2. 0 10
      platform/x11/os_x11.h

+ 3 - 2
platform/x11/os_x11.cpp

@@ -192,9 +192,10 @@ void OS_X11::initialize(const VideoMode& p_desired,int p_video_driver,int p_audi
 		xsh = XAllocSizeHints();
 		xsh = XAllocSizeHints();
 		xsh->flags = PMinSize | PMaxSize;
 		xsh->flags = PMinSize | PMaxSize;
 		XWindowAttributes xwa;
 		XWindowAttributes xwa;
-		XGetWindowAttributes(x11_display,x11_window,&xwa);
 		if (current_videomode.fullscreen) {
 		if (current_videomode.fullscreen) {
-			XGetWindowAttributes(x11_display,xwa.root,&xwa);
+			XGetWindowAttributes(x11_display,DefaultRootWindow(x11_display),&xwa);
+		} else {
+			XGetWindowAttributes(x11_display,x11_window,&xwa);
 		}
 		}
 		xsh->min_width = xwa.width; 
 		xsh->min_width = xwa.width; 
 		xsh->max_width = xwa.width;
 		xsh->max_width = xwa.width;

+ 0 - 10
platform/x11/os_x11.h

@@ -49,16 +49,6 @@
 #include <X11/Xlib.h>
 #include <X11/Xlib.h>
 #include <X11/Xcursor/Xcursor.h>
 #include <X11/Xcursor/Xcursor.h>
 
 
-// Hints for X11 fullscreen
-typedef struct {
-	unsigned long flags;
-	unsigned long functions;
-	unsigned long decorations;
-	long inputMode;
-	unsigned long status;
-} Hints;
-
-//bitch
 #undef CursorShape
 #undef CursorShape
 /**
 /**
 	@author Juan Linietsky <[email protected]>
 	@author Juan Linietsky <[email protected]>