gboolean gdk_display_supports_composite ( GdkDisplay* display )
gdk_window_set_composited() can be used
to redirect drawing on the window using compositing.
Currently this only works on X11 with XComposite and XDamage extensions available.
Compositing is an outdated technology that only ever worked on X11.