modules/graphics/src/main/native-glass/mac/GlassWindow.m
Print this page
*** 160,172 ****
{ \
case NSWindowDocumentIconButton: \
[button setAcceptsTouchEvents:NO]; \
[button setAction:nil]; \
[button setEnabled:NO]; \
! break; \
! } \
return button; \
} \
- (void)sendEvent:(NSEvent *)event \
{ \
/* Local copy of the id keeps the retain/release calls balanced. */ \
id view = [self->gWindow->view retain]; \
--- 160,172 ----
{ \
case NSWindowDocumentIconButton: \
[button setAcceptsTouchEvents:NO]; \
[button setAction:nil]; \
[button setEnabled:NO]; \
! default: \
return button; \
+ } \
} \
- (void)sendEvent:(NSEvent *)event \
{ \
/* Local copy of the id keeps the retain/release calls balanced. */ \
id view = [self->gWindow->view retain]; \
*** 877,890 ****
[GlassApplication enterFullScreenExitingLoop];
}
NSView<GlassView> *oldView = window->view;
window->view = getMacView(env, jview);
! //NSLog(@" window: %@", window);
! //NSLog(@" frame: %.2f,%.2f %.2fx%.2f", [window frame].origin.x, [window frame].origin.y, [window frame].size.width, [window frame].size.height);
! //NSLog(@" view: %@", window->view);
! //NSLog(@" frame: %.2f,%.2f %.2fx%.2f", [window->view frame].origin.x, [window->view frame].origin.y, [window->view frame].size.width, [window->view frame].size.height);
if (oldView && oldView != window->view) {
[[oldView delegate] resetMouseTracking];
}
--- 877,891 ----
[GlassApplication enterFullScreenExitingLoop];
}
NSView<GlassView> *oldView = window->view;
window->view = getMacView(env, jview);
!
! LOG("window: %@ frame: %s", window,
! [NSStringFromRect([window->nsWindow frame]) UTF8String]);
! LOG("view: %@ frame: %s", window->view,
! [NSStringFromRect([window->view frame]) UTF8String]);
if (oldView && oldView != window->view) {
[[oldView delegate] resetMouseTracking];
}