Is there any way I can detect (in a standard, non-hackish way) whether my Gnome app with a GtkHeaderBar is running under a window manager that provides its own window decorations (for example, XFWM) so that I can set gtk_header_bar_set_show_close_button to FALSE when it's not needed?
UPD: To be more clear, I want to hide GTK header buttons, not the WM ones.