mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
fix compilation when HAVE_COMPOSITE_EXTENSIONS is undefined. #326912
2006-01-14 Elijah Newren <newren gmail com> * src/compositor.[ch]: fix compilation when HAVE_COMPOSITE_EXTENSIONS is undefined. #326912
This commit is contained in:
parent
5a652acf88
commit
def12b85b8
@ -1,3 +1,8 @@
|
|||||||
|
2006-01-14 Elijah Newren <newren gmail com>
|
||||||
|
|
||||||
|
* src/compositor.[ch]: fix compilation when
|
||||||
|
HAVE_COMPOSITE_EXTENSIONS is undefined. #326912
|
||||||
|
|
||||||
Fri Jan 13 16:37:26 2006 Søren Sandmann <sandmann@redhat.com>
|
Fri Jan 13 16:37:26 2006 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* src/compositor.c (update): Only update on damage events.
|
* src/compositor.c (update): Only update on damage events.
|
||||||
|
@ -28,27 +28,27 @@
|
|||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
#include <cm/node.h>
|
#include <cm/node.h>
|
||||||
#include <cm/drawable-node.h>
|
#include <cm/drawable-node.h>
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
#include <GL/glu.h>
|
#include <GL/glu.h>
|
||||||
#include <GL/glx.h>
|
#include <GL/glx.h>
|
||||||
#include <X11/extensions/shape.h>
|
|
||||||
|
|
||||||
#include <cm/ws.h>
|
#include <cm/ws.h>
|
||||||
#include <cm/wsint.h>
|
#include <cm/wsint.h>
|
||||||
|
|
||||||
|
#include <X11/extensions/shape.h>
|
||||||
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
|
||||||
#include <X11/extensions/Xcomposite.h>
|
#include <X11/extensions/Xcomposite.h>
|
||||||
#include <X11/extensions/Xdamage.h>
|
#include <X11/extensions/Xdamage.h>
|
||||||
|
#include <X11/extensions/Xfixes.h>
|
||||||
#include <X11/extensions/Xrender.h>
|
#include <X11/extensions/Xrender.h>
|
||||||
|
|
||||||
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
||||||
|
|
||||||
#define FRAME_INTERVAL_MILLISECONDS ((int)(1000.0/40.0))
|
#define FRAME_INTERVAL_MILLISECONDS ((int)(1000.0/40.0))
|
||||||
|
|
||||||
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
/* Screen specific information */
|
/* Screen specific information */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@ -77,6 +77,7 @@ struct MetaCompositor
|
|||||||
|
|
||||||
GList *ignored_damage;
|
GList *ignored_damage;
|
||||||
};
|
};
|
||||||
|
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
||||||
|
|
||||||
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
static void
|
static void
|
||||||
@ -120,7 +121,9 @@ void
|
|||||||
meta_compositor_set_debug_updates (MetaCompositor *compositor,
|
meta_compositor_set_debug_updates (MetaCompositor *compositor,
|
||||||
gboolean debug_updates)
|
gboolean debug_updates)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
compositor->debug_updates = !!debug_updates;
|
compositor->debug_updates = !!debug_updates;
|
||||||
|
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
@ -168,7 +171,6 @@ draw_windows (MetaScreen *screen,
|
|||||||
draw_windows (screen, list->next);
|
draw_windows (screen, list->next);
|
||||||
node->render (node);
|
node->render (node);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static MetaScreen *
|
static MetaScreen *
|
||||||
node_get_screen (Display *dpy,
|
node_get_screen (Display *dpy,
|
||||||
@ -219,7 +221,6 @@ handle_restacking (MetaCompositor *compositor,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
|
||||||
static void
|
static void
|
||||||
process_configure_notify (MetaCompositor *compositor,
|
process_configure_notify (MetaCompositor *compositor,
|
||||||
XConfigureEvent *event)
|
XConfigureEvent *event)
|
||||||
@ -526,6 +527,7 @@ meta_compositor_process_event (MetaCompositor *compositor,
|
|||||||
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
static void
|
static void
|
||||||
wavy (double time,
|
wavy (double time,
|
||||||
double in_x, double in_y,
|
double in_x, double in_y,
|
||||||
@ -595,6 +597,7 @@ do_repaint (DrawableNode *node, gpointer data)
|
|||||||
if (!scr_info->idle_id)
|
if (!scr_info->idle_id)
|
||||||
scr_info->idle_id = g_idle_add (update, screen);
|
scr_info->idle_id = g_idle_add (update, screen);
|
||||||
}
|
}
|
||||||
|
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
||||||
|
|
||||||
/* This is called when metacity does its XQueryTree() on startup
|
/* This is called when metacity does its XQueryTree() on startup
|
||||||
* and when a new window is mapped.
|
* and when a new window is mapped.
|
||||||
@ -740,9 +743,9 @@ void
|
|||||||
meta_compositor_unmanage_screen (MetaCompositor *compositor,
|
meta_compositor_unmanage_screen (MetaCompositor *compositor,
|
||||||
MetaScreen *screen)
|
MetaScreen *screen)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
ScreenInfo *scr_info = screen->compositor_data;
|
ScreenInfo *scr_info = screen->compositor_data;
|
||||||
|
|
||||||
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
|
||||||
if (!compositor->enabled)
|
if (!compositor->enabled)
|
||||||
return; /* no extension */
|
return; /* no extension */
|
||||||
|
|
||||||
@ -757,6 +760,7 @@ meta_compositor_unmanage_screen (MetaCompositor *compositor,
|
|||||||
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_COMPOSITE_EXTENSIONS
|
||||||
static DrawableNode *
|
static DrawableNode *
|
||||||
window_to_node (MetaCompositor *compositor,
|
window_to_node (MetaCompositor *compositor,
|
||||||
MetaWindow *window)
|
MetaWindow *window)
|
||||||
@ -859,6 +863,7 @@ convert (MetaScreen *screen,
|
|||||||
rect->width = width / (double)screen->rect.width;
|
rect->width = width / (double)screen->rect.width;
|
||||||
rect->height = height / (double)screen->rect.height;
|
rect->height = height / (double)screen->rect.height;
|
||||||
}
|
}
|
||||||
|
#endif /* HAVE_COMPOSITE_EXTENSIONS */
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_compositor_minimize (MetaCompositor *compositor,
|
meta_compositor_minimize (MetaCompositor *compositor,
|
||||||
@ -899,9 +904,3 @@ meta_compositor_minimize (MetaCompositor *compositor,
|
|||||||
drawable_node_set_deformation_func (node, minimize_deformation, info);
|
drawable_node_set_deformation_func (node, minimize_deformation, info);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
MetaDisplay *
|
|
||||||
meta_compositor_get_display (MetaCompositor *compositor)
|
|
||||||
{
|
|
||||||
return compositor->display;
|
|
||||||
}
|
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
|
|
||||||
#include <X11/extensions/Xfixes.h>
|
|
||||||
|
|
||||||
typedef void (* MetaMinimizeFinishedFunc) (gpointer data);
|
typedef void (* MetaMinimizeFinishedFunc) (gpointer data);
|
||||||
|
|
||||||
MetaCompositor* meta_compositor_new (MetaDisplay *display);
|
MetaCompositor* meta_compositor_new (MetaDisplay *display);
|
||||||
|
Loading…
Reference in New Issue
Block a user