[SDL] X and SDL

ol olnet at free.fr
Wed Sep 4 05:06:01 PDT 2002


So, i'm new in SDL Programming ...

I try to get window attributes of SDL window like this ..

----------------------
if(SDL_GetWMInfo(&info))  {
  Window window;
  Display *display;
  info.info.x11.lock_func();
  parent = info.info.x11.window;
  display = info.info.x11.display;
  XGetWindowAttributes(display, window,&pattr);
  info.info.x11.unlock_func();
}

and the SDL Error is :

Fatal signal: Segmentation Fault (SDL Parachute Deployed) ....

the SIGSEV signal is sent when XGetWindowAttributes is called ...

thanks.




More information about the SDL mailing list