diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2016-08-28 00:36:53 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2016-09-09 14:14:31 -0700 |
commit | 4642216f70dd98134a79f9299b7ca4bc876649c7 (patch) | |
tree | bdf9fd892bc54a2f2a678a9828c6af9d9fc8bed2 /src/composite.h | |
parent | e99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff) |
*: refactor all the things
Long overdue house cleaning.
The addition of compositing/monitoring overlays in vwm3 pushed vwm well past
what is a reasonable size for a simple thousand line file. This is a first
step towards restoring sanity in the code, but no behavioral differences are
intended, this is mostly just shuffling around and organizing code.
I expect some performance regressions initially, follow-on commits will make
more improvements to that end as the dust settles.
Diffstat (limited to 'src/composite.h')
-rw-r--r-- | src/composite.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/composite.h b/src/composite.h new file mode 100644 index 0000000..fb4f623 --- /dev/null +++ b/src/composite.h @@ -0,0 +1,24 @@ +#ifndef _COMPOSITE_H +#define _COMPOSITE_H + +#include <X11/Xlib.h> +#include <X11/extensions/Xdamage.h> +#include <X11/extensions/Xfixes.h> + +typedef struct _vwm_t vwm_t; +typedef struct _vwm_xwindow_t vwm_xwindow_t; + +void vwm_composite_xwin_create(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_xwin_destroy(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_damage_add(vwm_t *vwm, XserverRegion damage); +void vwm_composite_damage_win(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_handle_configure(vwm_t *vwm, vwm_xwindow_t *xwin, XWindowAttributes *new_attrs); +void vwm_composite_handle_map(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_damage_event(vwm_t *vwm, XDamageNotifyEvent *ev); +void vwm_composite_damage_win(vwm_t *vwm, vwm_xwindow_t *xwin); +void vwm_composite_paint_all(vwm_t *vwm); +void vwm_composite_invalidate_root(vwm_t *vwm); +void vwm_composite_repaint_needed(vwm_t *vwm); +void vwm_composite_toggle(vwm_t *vwm); + +#endif |