summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-03-03 15:19:33 +0300
committermonsta <[email protected]>2016-03-03 17:36:48 +0300
commit9212dacb2bfd5985d8426bf0bdb88f2aca03444e (patch)
tree9e3d84215d52bb348439aa2ea71ed9ad17004712 /src/include
parentee01366b6659c9f4238a9a89706aa2b78903ead8 (diff)
downloadmarco-9212dacb2bfd5985d8426bf0bdb88f2aca03444e.tar.bz2
marco-9212dacb2bfd5985d8426bf0bdb88f2aca03444e.tar.xz
[GTK+3] re-add ability to show alt-tab thumbnails when compositor is on
adapted from: https://git.gnome.org/browse/metacity/commit/?id=e6828a3ee2cab1ec1acbdd5a444dc1cb98215a75 https://git.gnome.org/browse/metacity/commit/?id=758902aef22629943738241cea1f597b6db4b18e https://git.gnome.org/browse/metacity/commit/?id=c6ba6dc7f458720d9f8666881f45a830580468cb https://git.gnome.org/browse/metacity/commit/?id=68bdf1ab9de815e07f5cd75b2e1fa24ba92ae319 https://git.gnome.org/browse/metacity/commit/?id=78bbf4423f72797a05bfaddd4121d70db30de9a3
Diffstat (limited to 'src/include')
-rw-r--r--src/include/compositor.h6
-rw-r--r--src/include/ui.h4
2 files changed, 9 insertions, 1 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);
diff --git a/src/include/ui.h b/src/include/ui.h
index 70987d33..4705eda2 100644
--- a/src/include/ui.h
+++ b/src/include/ui.h
@@ -177,7 +177,9 @@ int meta_ui_get_drag_threshold (MetaUI *ui);
MetaUIDirection meta_ui_get_direction (void);
-#if !GTK_CHECK_VERSION (3, 0, 0)
+#if GTK_CHECK_VERSION (3, 0, 0)
+GdkPixbuf *meta_ui_get_pixbuf_from_surface (cairo_surface_t *surface);
+#else
GdkPixbuf *meta_ui_get_pixbuf_from_pixmap (Pixmap pmap);
#endif