Use x11-specific api to get at the screen

gdk_display_get_default_screen is going away.
This commit is contained in:
Matthias Clasen 2017-11-01 18:40:51 -04:00
parent 047eac5a96
commit 81cda3dcf7

View File

@ -4084,7 +4084,7 @@ gtk_window_supports_client_shadow (GtkWindow *window)
#ifdef GDK_WINDOWING_X11 #ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (display)) 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"))) gdk_atom_intern_static_string ("_GTK_FRAME_EXTENTS")))
return FALSE; return FALSE;
} }