diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-13 20:24:52 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-13 20:24:52 (GMT) |
| commit | 73fdfd411ce2a8470cf854e48237d609d0ad3bb6 (patch) | |
| tree | 389e708cef59ba891aa38ceab931a9e01bd60d2b /src/PowderToySDL.cpp | |
| parent | 01bfd486e75e0f22b5433a33b3fa251dad084769 (diff) | |
| download | powder-73fdfd411ce2a8470cf854e48237d609d0ad3bb6.zip powder-73fdfd411ce2a8470cf854e48237d609d0ad3bb6.tar.gz | |
copy support in linux
Diffstat (limited to 'src/PowderToySDL.cpp')
| -rw-r--r-- | src/PowderToySDL.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index f289958..fc35cf3 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -362,6 +362,11 @@ void EngineProcess() } break; #endif +#if defined (USE_SDL) && defined(LIN) && defined(SDL_VIDEO_DRIVER_X11) + case SDL_SYSWMEVENT: + clipboard_event(event); + continue; +#endif } event.type = 0; //Clear last event } @@ -486,6 +491,7 @@ int main(int argc, char * argv[]) exit(-1); } #endif + clipboard_init(); ui::Engine::Ref().g = new Graphics(); ui::Engine::Ref().Scale = scale; inputScale = 1.0f/float(scale); |
