Commit f9fcec51 authored by Christian Persch's avatar Christian Persch
Browse files

Fix build with gtk3 master

parent 4fa7d35b
......@@ -61,7 +61,7 @@ case "$with_gtk" in
VTE_LIBRARY_SUFFIX=$VTE_API_VERSION
VTE_SEAL_CFLAGS="-DVTE_SEAL_ENABLE"
GTK_API_VERSION=3.0
GTK_REQUIRED=2.91.0
GTK_REQUIRED=2.91.6
;;
esac
......
......@@ -240,10 +240,11 @@ vte_bg_get_for_screen(GdkScreen *screen)
window = gdk_screen_get_root_window(screen);
pvt->native.window = window;
pvt->native.native_window = gdk_x11_drawable_get_xid(window);
#if GTK_CHECK_VERSION (2, 90, 8)
#if GTK_CHECK_VERSION (2, 91, 6)
pvt->native.native_window = GDK_WINDOW_XID (window);
pvt->native.display = gdk_window_get_display(window);
#else
pvt->native.native_window = gdk_x11_drawable_get_xid(window);
pvt->native.display = gdk_drawable_get_display(GDK_DRAWABLE(window));
#endif
pvt->native.native_atom = gdk_x11_get_xatom_by_name_for_display(pvt->native.display, "_XROOTPMAP_ID");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment