diff --git a/ChangeLog b/ChangeLog index 983ea2631..3888ed53c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-01-14 Elijah Newren + + * src/compositor.[ch]: fix compilation when + HAVE_COMPOSITE_EXTENSIONS is undefined. #326912 + Fri Jan 13 16:37:26 2006 Søren Sandmann * src/compositor.c (update): Only update on damage events. diff --git a/src/compositor.c b/src/compositor.c index 1f18cfe1a..83ee23840 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -28,27 +28,27 @@ #include +#ifdef HAVE_COMPOSITE_EXTENSIONS #include #include #include #include #include -#include #include #include - -#ifdef HAVE_COMPOSITE_EXTENSIONS +#include #include #include +#include #include - #endif /* HAVE_COMPOSITE_EXTENSIONS */ #define FRAME_INTERVAL_MILLISECONDS ((int)(1000.0/40.0)) +#ifdef HAVE_COMPOSITE_EXTENSIONS /* Screen specific information */ typedef struct { @@ -77,6 +77,7 @@ struct MetaCompositor GList *ignored_damage; }; +#endif /* HAVE_COMPOSITE_EXTENSIONS */ #ifdef HAVE_COMPOSITE_EXTENSIONS static void @@ -120,7 +121,9 @@ void meta_compositor_set_debug_updates (MetaCompositor *compositor, gboolean debug_updates) { +#ifdef HAVE_COMPOSITE_EXTENSIONS compositor->debug_updates = !!debug_updates; +#endif /* HAVE_COMPOSITE_EXTENSIONS */ } #ifdef HAVE_COMPOSITE_EXTENSIONS @@ -168,7 +171,6 @@ draw_windows (MetaScreen *screen, draw_windows (screen, list->next); node->render (node); } -#endif static MetaScreen * node_get_screen (Display *dpy, @@ -219,7 +221,6 @@ handle_restacking (MetaCompositor *compositor, } } -#ifdef HAVE_COMPOSITE_EXTENSIONS static void process_configure_notify (MetaCompositor *compositor, XConfigureEvent *event) @@ -526,6 +527,7 @@ meta_compositor_process_event (MetaCompositor *compositor, #endif /* HAVE_COMPOSITE_EXTENSIONS */ } +#ifdef HAVE_COMPOSITE_EXTENSIONS static void wavy (double time, double in_x, double in_y, @@ -595,6 +597,7 @@ do_repaint (DrawableNode *node, gpointer data) if (!scr_info->idle_id) scr_info->idle_id = g_idle_add (update, screen); } +#endif /* HAVE_COMPOSITE_EXTENSIONS */ /* This is called when metacity does its XQueryTree() on startup * and when a new window is mapped. @@ -740,9 +743,9 @@ void meta_compositor_unmanage_screen (MetaCompositor *compositor, MetaScreen *screen) { +#ifdef HAVE_COMPOSITE_EXTENSIONS ScreenInfo *scr_info = screen->compositor_data; -#ifdef HAVE_COMPOSITE_EXTENSIONS if (!compositor->enabled) return; /* no extension */ @@ -757,6 +760,7 @@ meta_compositor_unmanage_screen (MetaCompositor *compositor, #endif /* HAVE_COMPOSITE_EXTENSIONS */ } +#ifdef HAVE_COMPOSITE_EXTENSIONS static DrawableNode * window_to_node (MetaCompositor *compositor, MetaWindow *window) @@ -859,6 +863,7 @@ convert (MetaScreen *screen, rect->width = width / (double)screen->rect.width; rect->height = height / (double)screen->rect.height; } +#endif /* HAVE_COMPOSITE_EXTENSIONS */ void meta_compositor_minimize (MetaCompositor *compositor, @@ -899,9 +904,3 @@ meta_compositor_minimize (MetaCompositor *compositor, drawable_node_set_deformation_func (node, minimize_deformation, info); #endif } - -MetaDisplay * -meta_compositor_get_display (MetaCompositor *compositor) -{ - return compositor->display; -} diff --git a/src/compositor.h b/src/compositor.h index 65d02fc4d..a2761bc3e 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -25,8 +25,6 @@ #include "util.h" #include "display.h" -#include - typedef void (* MetaMinimizeFinishedFunc) (gpointer data); MetaCompositor* meta_compositor_new (MetaDisplay *display);