diff --git a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.h b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.h index 8757d2ec0ca..9f64001212c 100644 --- a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.h +++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.h @@ -37,9 +37,6 @@ // TODO: NSMenu *contextualMenu; - // Keyboard layout - NSString *kbdLayout; - // dnd support (see AppKit/NSDragging.h, NSDraggingSource/Destination): CDragSource *_dragSource; CDropTarget *_dropTarget; diff --git a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m index 63a34847503..7386b0e51f3 100644 --- a/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m +++ b/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m @@ -37,6 +37,9 @@ #import #import +// keyboard layout +static NSString *kbdLayout; + @interface AWTView() @property (retain) CDropTarget *_dropTarget; @property (retain) CDragSource *_dragSource; @@ -998,7 +1001,7 @@ - (void) insertText:(id)aString replacementRange:(NSRange)replacementRange [self abandonInput]; } -- (void)keyboardInputSourceChanged:(NSNotification *)notification ++ (void)keyboardInputSourceChanged:(NSNotification *)notification { #ifdef IM_DEBUG NSLog(@"keyboardInputSourceChangeNotification received"); @@ -1295,7 +1298,7 @@ static JNF_MEMBER_CACHE(jm_characterIndexForPoint, jc_CInputMethod, jint index = JNFCallIntMethod(env, fInputMethodLOCKABLE, jm_characterIndexForPoint, (jint)flippedLocation.x, (jint)flippedLocation.y); // AWT_THREADING Safe (AWTRunLoopMode) #ifdef IM_DEBUG - fprintf(stderr, "characterIndexForPoint returning %ld\n", index); + fprintf(stderr, "characterIndexForPoint returning %d\n", index); #endif // IM_DEBUG if (index == -1) {