Commit Graph

13 Commits

Author SHA1 Message Date
Richard Grenville e912fcde7b Feature #51: Re-initialize when SIGUSR1 is received
- Create a session_t structure, to get rid of most global variables and
  let information pass in/out mostly through parameters. Huge changes,
  so bugs may very well appear. I'm worried about resource leakages, in
  particular.

- Add gcc attributes on various functions.

- Add Doxygen configuration.

- Replace much Xlib Bool with C99 bool.

- Add and adjust some comments.

- Drop unused parameters from some functions.

- Cache default Visual and Depth, mainly to shorten code.

- Rename some types, variables, and functions.

- Add win_ev_stop() and set_ignore_next() for convenience.

- Modify wid_get_prop_wintype() and wid_get_opacity_prop() to use
  wid_get_prop().

- Rename --respect-attr-shadow to --respect-prop-shadow.

- Fix a memory leak in --respect-prop-shadow.

- Many other small changes.
2012-11-19 11:44:58 +08:00
Richard Grenville 46dfd1a766 Misc: Add Asciidoc man pages
Add Asciidoc man pages. The old man page is still kept, and you need to
run "make docs" to generate the new man pages and a HTML version of it.
An Asciidoc man page for compton-trans is not added yet.
2012-11-01 12:47:15 +08:00
Richard Grenville 9b61999cae Merge branch 'master' into richardgv-dev
Merged the documentation changes. Program code unchanged.
2012-10-29 09:58:16 +08:00
Christopher Jeffrey 7ace6ca68d revert to c7ca345 2012-10-22 06:35:02 -05:00
Richard Grenville 07e4420ab4 Improvement: Pregenerate alpha pictures
Pregenerate alpha pictures to save time when painting. Add --alpha-step
to control the step of alpha picture generation (the opacity difference
between two consecutively generated alpha pictures).
2012-10-13 19:11:25 +08:00
Richard Grenville b8f3d22a32 Misc: #49: Add CMake support
Add CMakeLists.txt to support building with CMake, as @pvanek requests.
The old Makefile system and CPackConfig.cmake are still usable. (Of
course, make sure you don't overwrite them by executing cmake.) There
must be a bunch of bugs in CMakeLists.txt. :-) Let chjj decide which one
he will choose, here I keep both.
2012-10-03 13:34:54 +08:00
Richard Grenville ff50322b27 Misc: #49: Add CPack configuration
Add CPackConfig.cmake for generating binary packages (.tar.bz2, .deb,
.rpm) automatically. Pretty ugly, but mostly working.
CPackSourceConfig.cmake isn't ready yet.
2012-10-02 22:01:22 +08:00
Richard Grenville a5d9955ca4 Improvement: Change window type detection
- Let window type detection start with the client window if there's one,
  in hope to enhance performance.

- Change get_wintype_prop() to fetch the property only once.

- Default to WINTYPE_UNKNOWN instead of WINTYPE_NORMAL if
  _NET_WM_WINDOW_TYPE is missing.

- Fix a mistake in calc_opacity().

- Add some items to .gitignore.

- Fix a typo in usage().
2012-09-22 20:59:26 +08:00
Richard Grenville 4861d50ca4 Misc: Add Vim swap files to .gitignore 2012-09-11 21:07:29 +08:00
Christopher Jeffrey de8b773387 clean tree 2011-11-06 18:20:45 -06:00
James Cloos 733e29ba0e Add *~ to .gitignore to skip patch/emacs droppings 2007-09-03 05:51:17 -04:00
James Cloos f88dba2d9c Remove deprecated .cvsignore
The repo already has a .gitignore, so just rm the old .cvsignore.

Also removed a blank line from .gitignore.
2007-08-23 21:21:52 -04:00
Tilman Sauerbeck 3f8a32b083 Added .gitignore. 2007-03-12 13:38:59 +01:00