equal
deleted
inserted
replaced
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 { |