Update GraphicsProviderX11.cpp

Fixed some bugs I noticed while browsing the source :S