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.