466 jobject platformWindow = [self.javaPlatformWindow jObjectWithEnv:env]; |
466 jobject platformWindow = [self.javaPlatformWindow jObjectWithEnv:env]; |
467 if (platformWindow == NULL) { |
467 if (platformWindow == NULL) { |
468 // TODO: create generic AWT assert |
468 // TODO: create generic AWT assert |
469 } |
469 } |
470 |
470 |
471 [AWTWindow synthesizeMouseEnteredExitedEventsForAllWindows]; |
|
472 |
|
473 NSRect frame = ConvertNSScreenRect(env, [self.nsWindow frame]); |
471 NSRect frame = ConvertNSScreenRect(env, [self.nsWindow frame]); |
474 |
472 |
475 static JNF_MEMBER_CACHE(jm_deliverMoveResizeEvent, jc_CPlatformWindow, "deliverMoveResizeEvent", "(IIIIZ)V"); |
473 static JNF_MEMBER_CACHE(jm_deliverMoveResizeEvent, jc_CPlatformWindow, "deliverMoveResizeEvent", "(IIIIZ)V"); |
476 JNFCallVoidMethod(env, platformWindow, jm_deliverMoveResizeEvent, |
474 JNFCallVoidMethod(env, platformWindow, jm_deliverMoveResizeEvent, |
477 (jint)frame.origin.x, |
475 (jint)frame.origin.x, |
478 (jint)frame.origin.y, |
476 (jint)frame.origin.y, |
479 (jint)frame.size.width, |
477 (jint)frame.size.width, |
480 (jint)frame.size.height, |
478 (jint)frame.size.height, |
481 (jboolean)[self.nsWindow inLiveResize]); |
479 (jboolean)[self.nsWindow inLiveResize]); |
482 (*env)->DeleteLocalRef(env, platformWindow); |
480 (*env)->DeleteLocalRef(env, platformWindow); |
|
481 |
|
482 [AWTWindow synthesizeMouseEnteredExitedEventsForAllWindows]; |
483 } |
483 } |
484 |
484 |
485 - (void)windowDidMove:(NSNotification *)notification { |
485 - (void)windowDidMove:(NSNotification *)notification { |
486 AWT_ASSERT_APPKIT_THREAD; |
486 AWT_ASSERT_APPKIT_THREAD; |
487 |
487 |