modules/graphics/src/main/native-glass/mac/GlassWindow+Overrides.m
Print this page
*** 112,123 ****
NSWindow *child = (NSWindow*)[children objectAtIndex:i];
[child close];
}
// Call the notification method
! GET_MAIN_JENV;
(*env)->CallVoidMethod(env, self->jWindow, jWindowNotifyDestroy);
}
- (void)windowWillMove:(NSNotification *)notification
{
//NSLog(@"windowWillMove");
--- 112,126 ----
NSWindow *child = (NSWindow*)[children objectAtIndex:i];
[child close];
}
// Call the notification method
! assert(pthread_main_np() == 1);
! JNIEnv *env = jEnv;
! if (env != NULL) {
(*env)->CallVoidMethod(env, self->jWindow, jWindowNotifyDestroy);
+ }
}
- (void)windowWillMove:(NSNotification *)notification
{
//NSLog(@"windowWillMove");