summaryrefslogtreecommitdiff
path: root/src/include/compositor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/compositor.h')
-rw-r--r--src/include/compositor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/compositor.h b/src/include/compositor.h
index 5c238890..0eebe569 100644
--- a/src/include/compositor.h
+++ b/src/include/compositor.h
@@ -23,6 +23,7 @@
#define META_COMPOSITOR_H
#include <glib.h>
+#include <gtk/gtk.h>
#include <X11/Xlib.h>
#include "types.h"
@@ -50,8 +51,13 @@ void meta_compositor_set_updates (MetaCompositor *compositor,
void meta_compositor_process_event (MetaCompositor *compositor,
XEvent *event,
MetaWindow *window);
+#if GTK_CHECK_VERSION (3, 0, 0)
+cairo_surface_t *meta_compositor_get_window_surface (MetaCompositor *compositor,
+ MetaWindow *window);
+#else
Pixmap meta_compositor_get_window_pixmap (MetaCompositor *compositor,
MetaWindow *window);
+#endif
void meta_compositor_set_active_window (MetaCompositor *compositor,
MetaScreen *screen,
MetaWindow *window);