diff src/video/x11/SDL_x11shape.c @ 4851:5624fb0190b5

Changed flags and positioning (for the fake-hiding) as Andreas recommended.
author Eli Gottlieb <eligottlieb@gmail.com>
date Sun, 15 Aug 2010 18:52:57 -0400
parents 4f1573996a65
children
line wrap: on
line diff
--- a/src/video/x11/SDL_x11shape.c	Sat Aug 14 20:29:51 2010 -0400
+++ b/src/video/x11/SDL_x11shape.c	Sun Aug 15 18:52:57 2010 -0400
@@ -40,7 +40,7 @@
         result->window = window;
         result->mode.mode = ShapeModeDefault;
         result->mode.parameters.binarizationCutoff = 1;
-        result->usershownflag = 0;
+        result->userx = result->usery = 0;
         SDL_ShapeData* data = SDL_malloc(sizeof(SDL_ShapeData));
         result->driverdata = data;
         data->bitmapsize = 0;
@@ -75,7 +75,9 @@
     }
     memset(data->bitmap,0,data->bitmapsize);
     
-    window->shaper->usershownflag |= window->flags & SDL_WINDOW_SHOWN;
+    window->shaper->userx = window->x;
+    window->shaper->usery = window->y;
+    SDL_SetWindowPosition(window,-1000,-1000);
     
     return 0;
 }