Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11video.c Mon Jul 12 00:35:24 2010 -0700 +++ b/src/video/x11/SDL_x11video.c Mon Jul 12 00:36:55 2010 -0700 @@ -21,6 +21,8 @@ */ #include "SDL_config.h" +#include <unistd.h> /* For getpid() and readlink() */ + #include "SDL_video.h" #include "SDL_mouse.h" #include "../SDL_sysvideo.h" @@ -225,6 +227,10 @@ device->GL_DeleteContext = X11_GLES_DeleteContext; #endif + device->SetClipboardText = X11_SetClipboardText; + device->GetClipboardText = X11_GetClipboardText; + device->HasClipboardText = X11_HasClipboardText; + device->free = X11_DeleteDevice; return device;