diff src/video/x11/SDL_x11window.c @ 4862:7b1d35d98294

Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Aug 2010 13:45:56 -0700
parents fad859023468 b6930aefd008
children 50d0bff24d81
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c	Sun Aug 22 12:39:56 2010 -0700
+++ b/src/video/x11/SDL_x11window.c	Sun Aug 22 13:45:56 2010 -0700
@@ -29,6 +29,7 @@
 #include "SDL_x11video.h"
 #include "SDL_x11mouse.h"
 #include "SDL_x11gamma.h"
+#include "SDL_x11shape.h"
 #include "../Xext/extensions/StdCmap.h"
 
 #ifdef SDL_VIDEO_DRIVER_PANDORA
@@ -941,6 +942,8 @@
     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
     Display *display = data->videodata->display;
 
+    if(SDL_IsShapedWindow(window))
+        X11_ResizeWindowShape(window);
     XResizeWindow(display, data->xwindow, window->w, window->h);
 }