--- old/modules/graphics/src/main/native-glass/gtk/glass_screen.cpp 2018-10-03 15:26:05.430195096 +0530 +++ new/modules/graphics/src/main/native-glass/gtk/glass_screen.cpp 2018-10-03 15:26:05.154057096 +0530 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -119,7 +119,7 @@ jobject jScreen = env->NewObject(jScreenCls, jScreenInit, (jlong)monitor_idx, - visual ? visual->depth : 0, + (visual ? glass_gdk_visual_get_depth(visual) : 0), monitor_geometry.x, monitor_geometry.y,