Skip to content

Commit 9959c2b

Browse files
author
David Reveman
committed
Initial revision
0 parents  commit 9959c2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+31175
-0
lines changed

AUTHORS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
David Reveman <[email protected]>

COPYING

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
All code is licensed either under the GPL or the MIT license.
2+
3+
For More information see COPYING.GPL and COPYING.MIT.

COPYING.GPL

+340
Large diffs are not rendered by default.

COPYING.MIT

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
Copyright © 2005 Novell, Inc.
3+
4+
Permission to use, copy, modify, distribute, and sell this software
5+
and its documentation for any purpose is hereby granted without
6+
fee, provided that the above copyright notice appear in all copies
7+
and that both that copyright notice and this permission notice
8+
appear in supporting documentation, and that the name of
9+
Novell, Inc. not be used in advertising or publicity pertaining to
10+
distribution of the software without specific, written prior permission.
11+
Novell, Inc. makes no representations about the suitability of this
12+
software for any purpose. It is provided "as is" without express or
13+
implied warranty.
14+
15+
NOVELL, INC. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17+
NO EVENT SHALL NOVELL, INC. BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18+
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20+
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21+
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

ChangeLog

Whitespace-only changes.

INSTALL

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
compiz uses automake, in order to generate the Makefiles for compiz use:
2+
3+
$ autogen.sh
4+
5+
After that, standard build procedures apply:
6+
7+
$ make
8+
# make install
9+

Makefile.am

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
SUBDIRS = include src plugins images gnome kde
2+
3+
EXTRA_DIST = \
4+
COPYING \
5+
COPYING.GPL \
6+
COPYING.MIT \
7+
compiz.pc.in
8+
9+
pkgconfigdir = $(libdir)/pkgconfig
10+
pkgconfig_DATA = compiz.pc

NEWS

Whitespace-only changes.

README

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
compiz - OpenGL window and compositing manager
2+
3+
Compiz is an OpenGL compositing manager that use GLX_EXT_texture_from_pixmap
4+
for binding redirected top-level windows to texture objects. It has a flexible
5+
plug-in system and it is designed to run well on most graphics hardware.
6+
7+
David Reveman
8+

TODO

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
General:
3+
4+
* Session management
5+
6+
* Various window management improvements
7+
8+
* Window shade mode
9+
10+
* Support for multiple desktops
11+
12+
* Multi-screen support
13+
14+
15+
KDE:
16+
17+
* Remove glib dependency from place plugin
18+
19+
* QT/KDE configuration plugin similar to the gconf plugin
20+
21+
* QT/KDE decoration program
22+

autogen.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
autoreconf -v --install || exit 1
3+
./configure "$@"

compiz.pc.in

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=@prefix@
2+
exec_prefix=@exec_prefix@
3+
libdir=@libdir@
4+
includedir=@includedir@
5+
6+
Name: glxcompmgr
7+
Description: OpenGL compositing manager
8+
Version: @VERSION@
9+
10+
Requires: @GLXCOMP_REQUIRES@
11+
Libs: @GLXCOMP_LIBS@ @GL_LIBS@
12+
Cflags: @GLXCOMP_CFLAGS@ @GL_CFLAGS@ -I${includedir}/glxcomp

configure.ac

+219
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
AC_PREREQ(2.57)
2+
3+
AC_INIT([compiz], [0.0.1], [[email protected]])
4+
5+
AC_CONFIG_AUX_DIR(config)
6+
7+
AM_INIT_AUTOMAKE([dist-bzip2])
8+
AC_CONFIG_HEADER([config.h])
9+
AM_MAINTAINER_MODE
10+
11+
AC_ISC_POSIX
12+
AC_PROG_CC
13+
AC_PROG_CPP
14+
AC_PROG_LIBTOOL
15+
AC_HEADER_STDC
16+
AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h])
17+
18+
if test "x$GCC" = "xyes"; then
19+
case " $CFLAGS " in
20+
*[[\ \ ]]-Wall[[\ \ ]]*) ;;
21+
*) CFLAGS="$CFLAGS -Wall" ;;
22+
esac
23+
24+
case " $CFLAGS " in
25+
*[[\ \ ]]-Wpointer-arith[[\ \ ]]*) ;;
26+
*) CFLAGS="$CFLAGS -Wpointer-arith" ;;
27+
esac
28+
29+
case " $CFLAGS " in
30+
*[[\ \ ]]-Wstrict-prototypes[[\ \ ]]*) ;;
31+
*) CFLAGS="$CFLAGS -Wstrict-prototypes" ;;
32+
esac
33+
34+
case " $CFLAGS " in
35+
*[[\ \ ]]-Wmissing-prototypes[[\ \ ]]*) ;;
36+
*) CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
37+
esac
38+
39+
case " $CFLAGS " in
40+
*[[\ \ ]]-Wmissing-declarations[[\ \ ]]*) ;;
41+
*) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
42+
esac
43+
44+
case " $CFLAGS " in
45+
*[[\ \ ]]-Wnested-externs[[\ \ ]]*) ;;
46+
*) CFLAGS="$CFLAGS -Wnested-externs" ;;
47+
esac
48+
49+
case " $CFLAGS " in
50+
*[[\ \ ]]-fno-strict-aliasing[[\ \ ]]*) ;;
51+
*) CFLAGS="$CFLAGS -fno-strict-aliasing" ;;
52+
esac
53+
54+
if test "x$enable_ansi" = "xyes"; then
55+
case " $CFLAGS " in
56+
*[[\ \ ]]-ansi[[\ \ ]]*) ;;
57+
*) CFLAGS="$CFLAGS -ansi" ;;
58+
esac
59+
60+
case " $CFLAGS " in
61+
*[[\ \ ]]-pedantic[[\ \ ]]*) ;;
62+
*) CFLAGS="$CFLAGS -pedantic" ;;
63+
esac
64+
fi
65+
fi
66+
67+
AC_C_BIGENDIAN
68+
69+
plugindir=$libdir/compiz
70+
AC_SUBST(plugindir)
71+
72+
imagedir=$datadir/compiz
73+
AC_SUBST(imagedir)
74+
75+
COMPIZ_REQUIRES="libpng \
76+
xcomposite \
77+
xfixes \
78+
xdamage \
79+
xrandr \
80+
ice \
81+
sm \
82+
libstartup-notification-1.0 >= 0.7"
83+
84+
PKG_CHECK_MODULES(COMPIZ, $COMPIZ_REQUIRES)
85+
AC_SUBST(COMPIZ_REQUIRES)
86+
87+
AC_MSG_CHECKING(for GL_CFLAGS)
88+
AC_ARG_WITH(gl-cflags, [ --with-gl-cflags=CFLAGS ],
89+
[GL_CFLAGS="$withval"],
90+
[GL_CFLAGS=""])
91+
92+
AC_MSG_RESULT($GL_CFLAGS)
93+
AC_MSG_CHECKING(for GL_LIBS)
94+
AC_ARG_WITH(gl-libs, [ --with-gl-libs=LIBS ],
95+
[GL_LIBS="$withval"],
96+
[GL_LIBS="-lGL"])
97+
AC_MSG_RESULT($GL_LIBS)
98+
99+
AC_SUBST(GL_CFLAGS)
100+
AC_SUBST(GL_LIBS)
101+
102+
AC_ARG_ENABLE(gconf,
103+
[ --disable-gconf Disable gconf plugin],
104+
[use_gconf=$enableval], [use_gconf=yes])
105+
106+
if test "x$use_gconf" = "xyes"; then
107+
PKG_CHECK_MODULES(GCONF, gconf-2.0, [use_gconf=yes], [use_gconf=no])
108+
fi
109+
110+
AM_CONDITIONAL(GCONF_PLUGIN, test "x$use_gconf" = "xyes")
111+
if test "$use_gconf" = yes; then
112+
AC_DEFINE(USE_GCONF, 1, [Build gconf plugin])
113+
fi
114+
115+
AC_ARG_ENABLE(place,
116+
[ --disable-place Disable window placement plugin],
117+
[use_place=$enableval], [use_place=yes])
118+
119+
if test "x$use_place" = "xyes"; then
120+
PKG_CHECK_MODULES(PLACE, glib-2.0, [use_place=yes], [use_place=no])
121+
fi
122+
123+
AM_CONDITIONAL(PLACE_PLUGIN, test "x$use_place" = "xyes")
124+
if test "$use_place" = yes; then
125+
AC_DEFINE(USE_PLACE, 1, [Build placement plugin])
126+
fi
127+
128+
AC_ARG_ENABLE(menu,
129+
[ --disable-menu Disable window menu plugin],
130+
[use_menu=$enableval], [use_menu=yes])
131+
132+
if test "x$use_menu" = "xyes"; then
133+
PKG_CHECK_MODULES(MENU, gtk+-2.0, [use_menu=yes], [use_menu=no])
134+
fi
135+
136+
AM_CONDITIONAL(MENU_PLUGIN, test "x$use_menu" = "xyes")
137+
if test "$use_menu" = yes; then
138+
AC_DEFINE(USE_MENU, 1, [Build menu plugin])
139+
fi
140+
141+
AC_ARG_ENABLE(libsvg-cairo,
142+
[ --enable-libsvg-cairo Enable svg support],
143+
[use_libsvg_cairo=$enableval], [use_libsvg_cairo=no])
144+
145+
if test "x$use_libsvg_cairo" = "xyes"; then
146+
PKG_CHECK_MODULES(LIBSVG_CAIRO, libsvg-cairo,
147+
[use_libsvg_cairo=yes],
148+
[use_libsvg_cairo=no])
149+
fi
150+
151+
AM_CONDITIONAL(USE_LIBSVG_CAIRO, [test x$use_libsvg_cairo = xyes])
152+
if test "$use_libsvg_cairo" = yes; then
153+
AC_DEFINE(USE_LIBSVG_CAIRO, 1, [libsvg-cairo for SVG support])
154+
fi
155+
156+
AC_ARG_ENABLE(gnome,
157+
[ --disable-gnome Disable gnome window decorator and settings module],
158+
[use_gnome=$enableval], [use_gnome=yes])
159+
160+
if test "x$use_gnome" = "xyes"; then
161+
PKG_CHECK_MODULES(GNOME_WINDOW_DECORATOR,
162+
gtk+-2.0 libwnck-1.0 pangocairo,
163+
[use_gnome=yes], [use_gnome=no])
164+
if test "x$use_gnome" = "xyes"; then
165+
PKG_CHECK_MODULES(GNOME_WINDOW_SETTINGS,
166+
gnome-window-settings-2.0 gnome-desktop-2.0,
167+
[use_gnome=yes], [use_gnome=no])
168+
fi
169+
windowsettingsdatadir=`pkg-config --variable=prefix gnome-window-settings-2.0`/share
170+
windowsettingslibdir=`pkg-config --variable=libdir gnome-window-settings-2.0`
171+
fi
172+
173+
AC_SUBST(windowsettingsdatadir)
174+
AC_SUBST(windowsettingslibdir)
175+
176+
AM_CONDITIONAL(USE_GNOME, test "x$use_gnome" = "xyes")
177+
if test "$use_gnome" = yes; then
178+
AC_DEFINE(USE_GNOME, 1, [Build gnome window decorator and settings module])
179+
fi
180+
181+
AC_ARG_ENABLE(kde,
182+
[ --disable-kde Disable kde window decorator],
183+
[use_kde=$enableval], [use_kde=yes])
184+
185+
if test "x$use_kde" = "xyes"; then
186+
PKG_CHECK_MODULES(KDE_WINDOW_DECORATOR, QtCore,
187+
[use_kde=yes], [use_kde=no])
188+
fi
189+
190+
AM_CONDITIONAL(USE_KDE, test "x$use_kde" = "xyes")
191+
if test "$use_kde" = yes; then
192+
AC_DEFINE(USE_KDE, 1, [Build kde window decorator])
193+
fi
194+
195+
AC_OUTPUT([
196+
compiz.pc
197+
Makefile
198+
src/Makefile
199+
include/Makefile
200+
plugins/Makefile
201+
images/Makefile
202+
gnome/Makefile
203+
gnome/window-decorator/Makefile
204+
gnome/compiz.desktop
205+
kde/Makefile
206+
kde/window-decorator/Makefile
207+
])
208+
209+
echo ""
210+
echo "the following optional plugins will be compiled:"
211+
echo " gconf: $use_gconf"
212+
echo " place: $use_place"
213+
echo " menu: $use_menu"
214+
echo " svg: $use_libsvg_cairo"
215+
echo ""
216+
echo "and the following optional features will be compiled:"
217+
echo " gnome: $use_gnome"
218+
echo " kde: $use_kde"
219+
echo ""

gnome/Makefile.am

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
SUBDIRS = window-decorator
2+
3+
if USE_GNOME
4+
libcompiz_la_LDFLAGS = -export-dynamic -avoid-version
5+
libcompiz_la_LIBADD = @GNOME_WINDOW_SETTINGS_LIBS@
6+
libcompiz_la_SOURCES = \
7+
compiz-window-manager.c \
8+
compiz-window-manager.h
9+
libcompiz_module = libcompiz.la
10+
11+
desktopfilesdir = $(windowsettingsdatadir)/gnome/wm-properties
12+
desktopfiles_in_files = compiz.desktop.in
13+
desktopfiles_files = $(desktopfiles_in_files:.desktop.in=.desktop)
14+
desktopfiles_DATA = $(desktopfiles_files)
15+
endif
16+
17+
INCLUDES = @GNOME_WINDOW_SETTINGS_CFLAGS@
18+
19+
moduledir = $(windowsettingslibdir)/window-manager-settings
20+
21+
module_LTLIBRARIES = \
22+
$(libcompiz_module)

0 commit comments

Comments
 (0)