Misc: Code clean-up

- Fix a memory leak in register_cm().

- Print a warning message if argument of --vsync is invalid.

- Known bug: compton will probably freeze X if another compositing
  window manager is running and --vsync opengl is enabled, with
  nvidia-drivers-304.51. Probably an issue on the driver. I could see no
  workaround.
This commit is contained in:
Richard Grenville
2012-10-10 21:12:46 +08:00
parent b59e592588
commit 72ea4b5f47
3 changed files with 21 additions and 7 deletions

View File

@ -38,6 +38,7 @@ ifeq "$(NO_VSYNC_OPENGL)" ""
LIBS += -lGL
endif
CFLAGS ?= -DNDEBUG
CFLAGS += $(CFG)
LIBS += $(shell pkg-config --libs $(PACKAGES))