make sure compositor things don't get compiled when we're not using the

2008-06-02  Thomas Thurman  <tthurman@gnome.org>

        * src/core/display.c: make sure compositor things don't get
        compiled when we're not using the compositor.


svn path=/trunk/; revision=3748
This commit is contained in:
Thomas Thurman 2008-06-02 22:27:54 +00:00 committed by Thomas James Alexander Thurman
parent 327e3cb6b5
commit a8c5c002fb
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-06-02 Thomas Thurman <tthurman@gnome.org>
* src/core/display.c: make sure compositor things don't get
compiled when we're not using the compositor.
2008-06-02 Thomas Thurman <tthurman@gnome.org>
* test/metacity-test: new test script, imported from

View File

@ -5116,6 +5116,7 @@ meta_display_remove_autoraise_callback (MetaDisplay *display)
}
}
#ifdef HAVE_COMPOSITE_EXTENSIONS
void
meta_display_get_compositor_version (MetaDisplay *display,
int *major,
@ -5124,6 +5125,7 @@ meta_display_get_compositor_version (MetaDisplay *display,
*major = display->composite_major_version;
*minor = display->composite_minor_version;
}
#endif
Display *
meta_display_get_xdisplay (MetaDisplay *display)
@ -5155,14 +5157,18 @@ meta_display_get_focus_window (MetaDisplay *display)
return display->focus_window;
}
#ifdef HAVE_COMPOSITE_EXTENSIONS
int
meta_display_get_damage_event_base (MetaDisplay *display)
{
return display->damage_event_base;
}
#endif
#ifdef HAVE_COMPOSITE_EXTENSIONS
int
meta_display_get_shape_event_base (MetaDisplay *display)
{
return display->shape_event_base;
}
#endif