changeset 6555:e530f77a64a4

RT-34667: Mac: PickTest3D appears washed out Reviewed-by: anthony, kcr Summary: synchronize CAOpenGLLayer opacity with NSWindow opacity
author vadim
date Tue, 25 Mar 2014 10:34:57 +0400
parents c61f0f745e0d
children 7d3f955a9729
files modules/graphics/src/main/native-glass/mac/GlassWindow.m
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/mac/GlassWindow.m	Tue Mar 25 15:43:25 2014 +1300
+++ b/modules/graphics/src/main/native-glass/mac/GlassWindow.m	Tue Mar 25 10:34:57 2014 +0400
@@ -821,6 +821,12 @@
 
         if (window->view != nil)
         {
+            CALayer *layer = [window->view layer];
+            if ([layer isKindOfClass:[CAOpenGLLayer class]] == YES)
+            {
+                [((CAOpenGLLayer*)layer) setOpaque:[window->nsWindow isOpaque]];
+            }
+            
             window->suppressWindowMoveEvent = YES; // RT-11215
             {
                 NSRect viewFrame = [window->view frame];