Skip to content

Commit

Permalink
revert to c7ca345
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Oct 22, 2012
1 parent b0766e0 commit 7ace6ca
Show file tree
Hide file tree
Showing 9 changed files with 241 additions and 1,299 deletions.
25 changes: 7 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Build files
.deps
Makefile
Makefile.in
aclocal.m4
autom4te.cache
config.h
Expand All @@ -13,26 +14,14 @@ missing
stamp-h1
compton
*.o
build/

# CMake files
compton-*.deb
compton-*.rpm
compton-*.tar.bz2
release/
_CPack_Packages/
CMakeCache.txt
CMakeFiles/
*.cmake
install_manifest.txt

*~
core

# Vim files
.*.sw[a-z]
*~

# Misc files
core
# oprofile files
oprofile_data

# clang files
compton.plist
callgrind.out.*
160 changes: 0 additions & 160 deletions CMakeLists.txt

This file was deleted.

40 changes: 0 additions & 40 deletions CPackConfig.cmake

This file was deleted.

50 changes: 11 additions & 39 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,20 @@ PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man/man1

PACKAGES = x11 xcomposite xfixes xdamage xrender xext xrandr
LIBS = -lm -lrt
INCS =

# Parse configuration flags
CFG =

ifeq "$(NO_LIBCONFIG)" ""
CFG += -DCONFIG_LIBCONFIG
PACKAGES += libconfig

# libconfig-1.3* does not define LIBCONFIG_VER* macros, so we use
# pkg-config to determine its version here
CFG += $(shell pkg-config --atleast-version=1.4 libconfig || echo '-DCONFIG_LIBCONFIG_LEGACY')
endif

ifeq "$(NO_REGEX_PCRE)" ""
CFG += -DCONFIG_REGEX_PCRE
LIBS += $(shell pcre-config --libs)
INCS += $(shell pcre-config --cflags)
ifeq "$(NO_REGEX_PCRE_JIT)" ""
CFG += -DCONFIG_REGEX_PCRE_JIT
endif
endif

ifeq "$(NO_VSYNC_DRM)" ""
CFG += -DCONFIG_VSYNC_DRM
endif

ifeq "$(NO_VSYNC_OPENGL)" ""
CFG += -DCONFIG_VSYNC_OPENGL
LIBS += -lGL
endif

CFLAGS ?= -DNDEBUG
CFLAGS += $(CFG)

LIBS += $(shell pkg-config --libs $(PACKAGES))
INCS += $(shell pkg-config --cflags $(PACKAGES))
PACKAGES = x11 xcomposite xfixes xdamage xrender xext libconfig
LIBS = $(shell pkg-config --libs $(PACKAGES)) -lm
LIBS += $(shell pcre-config --libs)
INCS = $(shell pkg-config --cflags $(PACKAGES))
INCS += $(shell pcre-config --cflags)
CFLAGS += -Wall -std=c99
OBJS = compton.o

CFG ?= -DCONFIG_LIBCONFIG -DCONFIG_REGEX_PCRE -DCONFIG_REGEX_PCRE_JIT
# libconfig-1.3* does not define LIBCONFIG_VER* macros, so we use pkg-config
# to determine its version here
CFG += $(shell pkg-config --atleast-version=1.4 libconfig || echo '-DCONFIG_LIBCONFIG_LEGACY')
CFLAGS += $(CFG)

%.o: src/%.c src/%.h
$(CC) $(CFLAGS) $(INCS) -c src/$*.c

Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,13 @@ __R__ for runtime
* libxfixes (B,R)
* libXext (B,R)
* libxrender (B,R)
* libXrandr (B,R)
* pkg-config (B)
* make (B)
* xproto / x11proto (B)
* bash (R)
* xprop,xwininfo / x11-utils (R)
* libpcre (B,R) (Will probably be made optional soon)
* libconfig (B,R) (Will probably be made optional soon)
* libdrm (B) (Will probably be made optional soon)
* libGL (B,R) (Will probably be made optional soon)

To build, make sure you have the above dependencies:

Expand Down
5 changes: 1 addition & 4 deletions compton.sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ shadow-ignore-shaped = true;
menu-opacity = 0.8;
inactive-opacity = 0.8;
frame-opacity = 0.7;
inactive-opacity-override = false;
alpha-step = 0.06;
inactive-opacity-override = true;

# Fading
fading = true;
Expand All @@ -32,8 +31,6 @@ fade-out-step = 0.03;
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-rounded-corners = true;
detect-client-opacity = false;
refresh-rate = 0;

# Window type settings
wintypes:
Expand Down
1 change: 0 additions & 1 deletion desc.txt

This file was deleted.

Loading

0 comments on commit 7ace6ca

Please sign in to comment.