- gdk_window_shape_combine_mask(window, bitmap, 0, 0);
+#ifdef __WXGTK3__
+ cairo_region_t* region = gdk_cairo_region_create_from_surface(m_mask);
+ gdk_window_shape_combine_region(window, region, 0, 0);
+ cairo_region_destroy(region);
+#else
+ gdk_window_shape_combine_mask(window, m_mask, 0, 0);
+#endif