comparison src/video/x11/SDL_x11video.c @ 4508:15d2c6f40c48

Added X11 clipboard support. As far as I know there isn't any real way to tell when the clipboard contents have changed without polling them, so I didn't implement the clipboard update event on X11.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jul 2010 00:36:55 -0700
parents 791b3256fb22
children a956a315fe67 03dcb795c583
comparison
equal deleted inserted replaced
4507:dbf3fa541096 4508:15d2c6f40c48
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23
24 #include <unistd.h> /* For getpid() and readlink() */
23 25
24 #include "SDL_video.h" 26 #include "SDL_video.h"
25 #include "SDL_mouse.h" 27 #include "SDL_mouse.h"
26 #include "../SDL_sysvideo.h" 28 #include "../SDL_sysvideo.h"
27 #include "../SDL_pixels_c.h" 29 #include "../SDL_pixels_c.h"
223 device->GL_GetSwapInterval = X11_GLES_GetSwapInterval; 225 device->GL_GetSwapInterval = X11_GLES_GetSwapInterval;
224 device->GL_SwapWindow = X11_GLES_SwapWindow; 226 device->GL_SwapWindow = X11_GLES_SwapWindow;
225 device->GL_DeleteContext = X11_GLES_DeleteContext; 227 device->GL_DeleteContext = X11_GLES_DeleteContext;
226 #endif 228 #endif
227 229
230 device->SetClipboardText = X11_SetClipboardText;
231 device->GetClipboardText = X11_GetClipboardText;
232 device->HasClipboardText = X11_HasClipboardText;
233
228 device->free = X11_DeleteDevice; 234 device->free = X11_DeleteDevice;
229 235
230 return device; 236 return device;
231 } 237 }
232 238