Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11clipboard.c @ 5251:58265e606e4e
Window coordinates are in the global space and windows are not tied to a particular display.
Also added Ctrl-Enter keybinding to the test code to toggle fullscreen mode for testing.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Feb 2011 14:44:25 -0800 |
parents | f18bc9935507 |
children | b530ef003506 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11clipboard.c Thu Feb 10 14:36:09 2011 -0800 +++ b/src/video/x11/SDL_x11clipboard.c Thu Feb 10 14:44:25 2011 -0800 @@ -38,15 +38,11 @@ static Window GetWindow(_THIS) { - SDL_VideoDisplay *display; SDL_Window *window; - display = _this->displays; - if (display) { - window = display->windows; - if (window) { - return ((SDL_WindowData *) window->driverdata)->xwindow; - } + window = _this->windows; + if (window) { + return ((SDL_WindowData *) window->driverdata)->xwindow; } return None; }