   Does SDL use xlib?
  What is SDL window creation and event processing built on top of in the Linux version? Does it use xlib directly for this, or something else?   
  SDL is open source, find out for yourself. However, a look at the different acceptable values for the environmental variable SDL_VIDEODRIVER might be quicker.   