+ break;
+ }
+ return font;
+}
+
+static bool GetFrameExtents(GdkWindow* window, int* left, int* right, int* top, int* bottom)
+{
+ bool success = false;
+ Atom property = 0;
+#if GTK_CHECK_VERSION(2, 2, 0)
+ if (gtk_check_version(2, 2, 0) == NULL)
+ {
+ if (gdk_x11_screen_supports_net_wm_hint(
+ gdk_drawable_get_screen(window),
+ gdk_atom_intern("_NET_FRAME_EXTENTS", false)))
+ {
+ success = true;
+ property = gdk_x11_get_xatom_by_name_for_display(
+ gdk_drawable_get_display(window),
+ "_NET_FRAME_EXTENTS");
+ }
+ }
+ else
+#endif
+ {
+ if (gdk_net_wm_supports(gdk_atom_intern("_NET_FRAME_EXTENTS", false)))
+ {
+ success = true;
+ property = gdk_x11_get_xatom_by_name("_NET_FRAME_EXTENTS");
+ }