jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTWindow.m
changeset 38987 ffe8b158dd6a
parent 38970 aabcf4406038
child 39511 a7ad23d3d161
equal deleted inserted replaced
38986:5b96e2b155eb 38987:ffe8b158dd6a
   809 
   809 
   810             // Check if the click happened in the non-client area (title bar)
   810             // Check if the click happened in the non-client area (title bar)
   811             if (p.y >= (frame.origin.y + contentRect.size.height)) {
   811             if (p.y >= (frame.origin.y + contentRect.size.height)) {
   812                 JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
   812                 JNIEnv *env = [ThreadUtilities getJNIEnvUncached];
   813                 jobject platformWindow = [self.javaPlatformWindow jObjectWithEnv:env];
   813                 jobject platformWindow = [self.javaPlatformWindow jObjectWithEnv:env];
   814                 // Currently, no need to deliver the whole NSEvent.
   814                 if (platformWindow != NULL) {
   815                 static JNF_MEMBER_CACHE(jm_deliverNCMouseDown, jc_CPlatformWindow, "deliverNCMouseDown", "()V");
   815                     // Currently, no need to deliver the whole NSEvent.
   816                 JNFCallVoidMethod(env, platformWindow, jm_deliverNCMouseDown);
   816                     static JNF_MEMBER_CACHE(jm_deliverNCMouseDown, jc_CPlatformWindow, "deliverNCMouseDown", "()V");
       
   817                     JNFCallVoidMethod(env, platformWindow, jm_deliverNCMouseDown);
       
   818                     (*env)->DeleteLocalRef(env, platformWindow);
       
   819                 }
   817             }
   820             }
   818         }
   821         }
   819 }
   822 }
   820 
   823 
   821 - (void)constrainSize:(NSSize*)size {
   824 - (void)constrainSize:(NSSize*)size {