Skip to content

Instantly share code, notes, and snippets.

@koo5
Created January 18, 2011 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koo5/784241 to your computer and use it in GitHub Desktop.
Save koo5/784241 to your computer and use it in GitHub Desktop.
sdl 1.2.14 patch for making a compositing window manager
diff --git a/SDL-1.2.14/src/video/x11/SDL_x11events.c b/SDL-1.2.14/src/video/x11/SDL_x11events.c
index da57528..d0ce0f3 100644
--- a/SDL-1.2.14/src/video/x11/SDL_x11events.c
+++ b/SDL-1.2.14/src/video/x11/SDL_x11events.c
@@ -817,7 +817,7 @@ printf("MapNotify!\n");
#ifdef DEBUG_XEVENTS
printf("ConfigureNotify! (resize: %dx%d)\n", xevent.xconfigure.width, xevent.xconfigure.height);
#endif
- if(SDL_Window == xevent.xconfigure.window)
+ if(WMwindow == xevent.xconfigure.window)
{
if ( SDL_VideoSurface ) {
if ((xevent.xconfigure.width != SDL_VideoSurface->w) ||
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment