diff options
| author | Richard Grenville <pyxlcy@gmail.com> | 2013-01-08 08:50:58 +0800 |
|---|---|---|
| committer | Richard Grenville <pyxlcy@gmail.com> | 2013-01-08 10:19:19 +0800 |
| commit | 03ffecb4a0de95300fce6419abda3177db016f0b (patch) | |
| tree | 551f650959ebd4c5794f39ecf2f0b21bdba0bec3 /twin/data | |
| parent | f4edcb2ec1618b71f09a6b93cdd123583cf3a8c4 (diff) | |
| download | tdebase-03ffecb4a0de95300fce6419abda3177db016f0b.tar.gz tdebase-03ffecb4a0de95300fce6419abda3177db016f0b.zip | |
Improvement #74: Use libevent for main loop
- Use libevent for main loop. I will explain the reasons in #56 later.
The preferred libevent version is 2.x, yet 1.4.x should work as well.
- As a result, compton now should build fine on *BSD. Thanks to
DachiChang for the FreeBSD build issue report.
- Another consequence is we now use microsecond-level timing all the
way. Nanosecond-level code will be dropped soon. Start using long
instead of unsigned long to represent time in milliseconds, as both
can't hold the full epoch time in ms, anyway, and a signed type
requires less care in subtraction. Wrap the epoch time in ms to 15
days.
- Fix broken NO_VSYNC_DRM and NO_VSYNC_OPENGL compile-time options.
- Use git revision number for versioning in Makefile, and other small
improvements.
- Reorganize struct _win. Drop unused w->damaged_sequence. w->damaged is
turned to bool.
- Add type and format to winprop_t, as preparation for the new condition
format.
- Add w->shadow_force and w->focus_force, to prepare for D-Bus support.
- Rename wid_get_prop() to wid_get_prop_adv() with more options. Add
wrapper function wid_get_prop().
- Add some extra helper functions, for D-Bus support later.
- Make some functions return a bool value to indicate if it's
successful.
- Modify add_win(), use a static const structure to initialize the new
struct _win.
- Add some helper macros, like printf_err(f)(q). Make some errors fatal.
- Rename some types, constants, and functions. Code clean-up.
- Check for time disorder in paint_preprocess() when calculating fading
steps.
- Rename evpoll() to swopti_handle_timeout(), and partially rewrite it.
- Make -h / --help legal.
- Known issue: compton segfaults on FreeBSD with nvidia-drivers, unless
NO_VSYNC_OPENGL is used. Will look into it later. Thamls to DachiChang
for reporting.
Diffstat (limited to 'twin/data')
0 files changed, 0 insertions, 0 deletions
