diff src/video/cocoa/SDL_cocoawindow.m @ 4503:524dfefd554c

Added an event when the clipboard is updated, triggered after the window gains the keyboard focus.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 08 Jul 2010 22:54:03 -0700
parents 3d91e31fcf71
children c17ac64abb70
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 08 06:21:48 2010 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Thu Jul 08 22:54:03 2010 -0700
@@ -128,6 +128,9 @@
 {
     /* We're going to get keyboard events, since we're key. */
     SDL_SetKeyboardFocus(_data->window);
+
+    /* Check to see if someone updated the clipboard */
+    Cocoa_CheckClipboardUpdate(_data->videodata);
 }
 
 - (void)windowDidResignKey:(NSNotification *)aNotification