Many functions returned an int to indicate their success. For clarity, use SDL_bool instead.
Make the server send the device name along with the width and height, so that the client may use it as the window title.
Start a new clean history from here.