diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index ba99af8c66..e79039926d 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4084,7 +4084,7 @@ gtk_window_supports_client_shadow (GtkWindow *window) #ifdef GDK_WINDOWING_X11 if (GDK_IS_X11_DISPLAY (display)) { - if (!gdk_x11_screen_supports_net_wm_hint (gdk_display_get_default_screen (display), + if (!gdk_x11_screen_supports_net_wm_hint (gdk_x11_display_get_screen (display), gdk_atom_intern_static_string ("_GTK_FRAME_EXTENTS"))) return FALSE; }